简体   繁体   English

iPhone模拟器资源未更新

[英]iphone simulator resources not updating

My iPhone simulator refuses to update the resources which I edit. 我的iPhone模拟器拒绝更新我编辑的资源。

After doing a "Clean" and build, the new resources were installed. 完成“清理”并构建之后,就安装了新资源。 On the second run it reinstalled the old ones. 在第二次运行时,它重新安装了旧版本。 I have no idea where it's getting them from. 我不知道从哪儿来的。

Any suggestions? 有什么建议么?

进入~/Library/Application Support/iPhone Simulator/然后寻找要删除的应用程序,或者只是删除整个文件夹。

There is a "Touch" command in the XCode context menu for the resource files. 资源文件的XCode上下文菜单中有一个“ Touch”命令。 It helps sometimes. 有时会有所帮助。

You might have problem with caches, if the changes are not updating the simulators might need resetting. 如果更改未更新,则可能对缓存有问题,可能需要重置模拟器。

Try quitting iPhone Simulator, then run xcrun in Terminal: 尝试退出iPhone Simulator,然后在终端中运行xcrun:

xcrun simctl erase all

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM