XCode 4.2 缺少模拟器的 iOS5 SDK
我在针对 iPhone 5 的 OSX Lion 10.7.2 上使用 Xcode 4.2 创建了一个空的单视图应用程序。该项目构建得很顺利,但是在启动模拟器时我收到以下错误消息:
iOS 模拟器找不到 SDK。 SDK可能需要重新安装。
然后我尝试瞄准 iPad,得到了相同的结果。我使用终端删除了 Xcode,并从 AppStore 下载了新的副本。全新安装会产生完全相同的错误。
安装过程中似乎没有部署 SDK。关于如何正确安装 iOS 5 SDK 以使模拟器正常工作有什么建议或提示吗?
更新
我下载了iOS 4.3模拟器,但没有安装。如果我选择 4.3 SDK,模拟器可以完美运行,但由于某种原因无法识别包含 5.0 SDK 的文件夹。
更新
我重新格式化了 MacBook,重新加载了干净的 OSX Lion,没有恢复任何备份并安装了 Xcode。安装后直接运行模拟器,但是在重新启动并重新启动 Xcode 后,错误又回来了。 SDK 本身似乎已损坏。将尝试再次重新安装 Xcode。
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:
iOS Simulator could not find the SDK. The SDK may need to be reinstalled.
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.
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?
Update
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.
Update
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
经过一些测试,发现问题是由第三方软件引起的。最近,TotalFinder 的开发人员删除了系统的 Asepsis 部分,并创建了一个单独的应用程序来处理
DS_Store
文件。不幸的是,一旦安装,这就会破坏 iOS 模拟器,即使在卸载 Asepsis 后,我也需要重建整个机器才能消除该错误。
更新
BinaryAge 已意识到有关 Xcode 4.2 的问题,并且它现在列在已知问题页面上,并在下载链接上显示警告横幅。
最终更新
看来 BinaryAge 已经改变了 Asepsis 的工作方式,并且这不再是最新版本的问题。
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.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.
Update
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.
Final Update
It seems BinaryAge has changed the way Asepsis works and this is no longer an issue with the latest versions.
您是否在模拟器中尝试过“文件 -> 重置内容和设置...”?我也遇到了类似的问题,但是重置模拟器后就解决了!事实上,我在删除所有现有项目并创建新项目后也发现它可以工作,但在我重新启动 xcode 后又出现了。幸运的是,“重置”总是对我有用,我希望它对您的情况有所帮助。
Did you try "File -> Reset Content and Settings ..." in the simulator ? I also encountered the similar problem, but it worked after I reset the simulator! In fact, I also found it worked after I removed all the existing projects and created new ones, but it occurred again after I restart xcode. Fortunately the "Reset" always works for me and I hope it can be helpful for your case.