【问题标题】:iOS app runs on device but not in the simulatoriOS 应用程序在设备上运行,但不在模拟器中
【发布时间】:2014-07-22 07:08:10
【问题描述】:

我有以下问题。

我目前正在开发一款 Spritekit 游戏。 游戏在 iPhone5 上运行完全流畅。当我想在模拟器中运行应用程序时,编译器告诉我:

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'

但是当我想用 64 位模拟器运行它时,它的帧率非常低,但没有错误。 (游戏在 iPhone5s 上运行也非常流畅)。

我没有在设备上测试游戏的 iPhone 4。但是在这里,当我想用​​ iPhone4 的模拟器运行应用程序时,编译器会告诉我一个类似上面的错误!

当游戏在真实设备上完全运行没有任何问题时,我可以忽略这一点,还是我必须关心这些错误?

感谢您的帮助!

【问题讨论】:

标签: ios xcode sprite-kit device simulator


【解决方案1】:

尝试从 xcode 中清除派生数据。 选择 Xcode -> window-> Organizer->Projects 然后选择并删除您的项目派生数据。

【讨论】:

    【解决方案2】:

    尝试恢复模拟器的内容和设置。我前段时间遇到过类似的问题,模拟器恢复后一切正常。

    【讨论】:

      猜你喜欢
      • 2012-09-12
      • 1970-01-01
      • 2011-04-08
      • 2011-04-13
      • 2012-02-08
      • 2012-05-15
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多