Xcode不会编译为模拟器 [英] Xcode Won't Compile To Simulator
问题描述
我刚刚通过App Store更新了Xcode 4.5,从我以前的版本,我从我的苹果开发者帐户。从更新我无法编译任何应用程序到模拟器。我可以编译到设备上,例如。我的iPhone。
I've just updated Xcode 4.5 via the App Store, from my previous version which I got from my Apple Developer Account. Since the update I can't compile any apps into the Simulator. I can compile onto a device, e.g. my 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.
推荐答案
进入〜/ Library / Developer / Xcode / DerivedData / {project name + gobly-gook}
并删除包含您的项目名称的文件夹。
go in ~/Library/Developer/Xcode/DerivedData/{project name + gobly-gook}
and delete folder with your project name.
> EDIT建议之后
注意:
1.通过以下命令取消隐藏库文件夹以取消隐藏〜/ Library文件夹
1.Unhide Library folder by following command to unhide ~/Library folder
chflags nohidden ~/Library
现在可以看到Library文件夹为/ Users //库
2.打开GO菜单并按Alt键和库将作为新的菜单项显示。
选择打开库文件夹
3.您可以访问〜/ Library文件夹终端。
Now you can see Library folder as /Users//Library
2. Open GO menu of finder and press Alt key and Library will be visible as new menu item.
Select that to open Library folder
3. You can access ~/Library folder by Terminal.
这篇关于Xcode不会编译为模拟器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!