简体   繁体   English

iOS应用程序在设备上运行,但不在模拟器中运行

[英]iOS app runs on device but not in the simulator

I have the following problem. 我有以下问题。

I'm working on a Spritekit game at the moment. 我目前正在开发一款Spritekit游戏。 The game runs completely smooth on a iPhone5. 这款游戏在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. 但是当我想用它运行的64位模拟器运行时,帧速率非常低但没有错误。 (The game also runs very smoothly with the iPhone5s). (iPhone5s的游戏运行也很顺畅)。

I do not own a iPhone 4 to test the game on a device. 我没有iPhone 4来测试设备上的游戏。 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! 但是在这里,当我想用​​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! 谢谢你的帮助!

try clearing derived data from xcode. 尝试清除xcode中的派生数据。 select Xcode -> window-> organizer->Projects then select and delete your project derived data. 选择Xcode - > window-> organizer-> Projects然后选择并删除项目派生数据。

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. 我前段时间遇到过类似的问题,在simultor恢复之后一切都还可以。

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

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