iOS app runs on device but not in the simulator

我与影子孤独终老i 提交于 2019-12-23 02:39:18

问题


I have the following problem.

I'm working on a Spritekit game at the moment. The game runs completely smooth on a iPhone5. When I want to run the app in the simulator, the compiler tells me:

fatal error: malformed or corrupted AST file: 'Unable to load module "/Users/macvideo/Library/Developer/Xcode/DerivedData/ModuleCache/3TAGE798UH20R/Darwin.pcm": module file not found'
note: after modifying system headers, please delete the module cache at '/Users/macvideo/Library/Developer/Xcode/DerivedData/ModuleCache/3TAGE798UH20R'

But when I want to run it with the 64bit simulator it works, the framerate is very low but there are no errors. (The game also runs very smoothly with the iPhone5s).

I do not own a iPhone 4 to test the game on a device. But also here, the compiler tells me an error like the one above when I want to run the app with the simulator for the iPhone4!

Can I ignore that when the game runs completely without any problems on a real device or do I have to care about these errors?

Thanks for your help!


回答1:


try clearing derived data from xcode. select Xcode -> window-> organizer->Projects then select and delete your project derived data.




回答2:


try to restore the content and settings of your simulator. I had a similar problem some time ago and after simultor restore all was ok.



来源:https://stackoverflow.com/questions/24880948/ios-app-runs-on-device-but-not-in-the-simulator

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!