问题描述
我在针对iPhone 5的OSX Lion 10.7.2上使用Xcode 4.2创建了一个空的单视图应用程序。该项目很快乐地启动但是在启动模拟器时我收到以下错误消息:
I created an empty Single View application using Xcode 4.2 on OSX Lion 10.7.2 targeting iPhone 5. The project built happily however when launching the simulator I receive the following error message:
然后尝试以相同的结果定位iPad。我使用终端删除了Xcode,并从AppStore下载了一个新副本。干净安装会生成完全相同的错误。
I then tried targeting the iPad with the same results. I removed Xcode using the terminal and downloaded a fresh copy from the AppStore. The clean installation generates the exact same error.
似乎在安装期间未部署SDK。关于如何正确安装iOS 5 SDK以使模拟器正常工作的任何建议或提示?
It seems that the SDK is not being deployed during installation. Any advice or tips on how I can correctly install the iOS 5 SDK for the simulator to work?
更新
我下载了未安装的iOS 4.3模拟器。如果我选择4.3 SDK但是由于某种原因无法识别包含5.0 SDK的文件夹,模拟器可以正常工作。
I downloaded the iOS 4.3 simulator which was not installed. The simulator works perfectly if I select the 4.3 SDK but for some reason is not recognizing the folder containing the 5.0 SDK.
更新
我重新格式化了MacBook,重新加载了一个干净的OSX Lion而没有恢复任何备份并安装了Xcode。在安装完成后直接运行模拟器,但是在重新启动并重新启动Xcode之后,错误又回来了。 SDK本身似乎已损坏。将再次尝试重新安装Xcode。
I reformatted the MacBook, reloaded a clean OSX Lion without restoring any backups and installed Xcode. Running the simulator directly after the installed worked, however after a reboot and relaunching Xcode the error came back. The SDK itself seems to have been corrupted. Will try and reinstall Xcode again.
推荐答案
经过一些测试后发现问题是由第三方软件引起的。最近,TotalFinder的开发人员删除了系统的部分,并创建了一个单独的应用程序来处理 DS_Store
文件。
After some testing it turns out the problem is caused by a 3rd Party Software. Recently the developer of TotalFinder removed the Asepsis portion of the system and created a separate application for the handling of DS_Store
files.
不幸的是,这会在安装后破坏iOS模拟器,甚至在卸载Asepsis之后,我需要重建整个机器以摆脱错误。
Unfortunately, this breaks the iOS Simulator once installed, and even after uninstalling Asepsis, I needed to rebuild my whole machine to get rid of the error.
更新
了解Xcode 4.2的问题,它现在列在已知问题页面上,并在下载链接上显示警告标语。
BinaryAge is aware of the issue with regards to Xcode 4.2 and it is now listed on the know issues page and a warning banner displayed on the download link.
最终更新
似乎BinaryAge改变了Asepsis的工作方式,这不再是一个问题最新版本。
It seems BinaryAge has changed the way Asepsis works and this is no longer an issue with the latest versions.
这篇关于XCode 4.2缺少模拟器的iOS5 SDK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!