Xcode不会编译到模拟器

Fla*_*lyn 4 xcode compiler-errors

我刚刚通过App Store更新了Xcode 4.5,这是我之前从Apple开发者帐户获得的版本.由于更新,我无法将任何应用程序编译到模拟器中.我可以编译到设备上,例如我的iPhone.

我收到的错误是

    fatal error: file 
    '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/
Developer/SDKs/iPhoneSimulator6.0.sdk/usr/include/Availability.h'
         has been modified since the precompiled header was built

1 error generated.
Run Code Online (Sandbox Code Playgroud)

CRD*_*ave 23

进入~/Library/Developer/Xcode/DerivedData/{project name + gobly-gook}并删除包含项目名称的文件夹.

编辑后建议

注意:

默认情况下,库文件夹被隐藏,因此我们无法看到它.
所以我们有三种方法可以使用这个隐藏的〜/ Library文件夹

1.通过以下命令取消隐藏〜/ Library文件夹,取消隐藏Library文件夹

chflags nohidden ~/Library
Run Code Online (Sandbox Code Playgroud)

现在,您可以将Library文件夹视为/ Users // Library

2.打开finder的GO菜单,按Alt键,Library将作为新菜单项显示.
选择它以打开库文件夹

3.您可以通过终端访问〜/ Library文件夹.


小智 8

最简单的方法:只需"清理"项目(产品 > 清洁)