iOS应用程序在设备上运行,但不在模拟器中运行 [英] iOS app runs on device but not in the simulator

查看:191
本文介绍了iOS应用程序在设备上运行,但不在模拟器中运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到以下问题。

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

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'

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

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).

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

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?

感谢您的帮助!

推荐答案

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

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

这篇关于iOS应用程序在设备上运行,但不在模拟器中运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆