问题描述
我最近在 OS X Mavericks 中安装了 Xcode 版本 6 的测试版,其中附带了适用于 iOS 8 的 iOS 模拟器.我设法在装有 iOS 8 Beta 的设备上成功地从 Xcode 6 beta 运行,但打开了模拟器总是遇到同样的错误,我曾尝试在模拟器中更改 iPhone 4s、iPhone 5 等的硬件版本,但仍然出现相同的错误:无法启动 iOS 模拟器".
I recently installed the beta of Xcode Version 6 in OS X Mavericks, with which comes the iOS simulator for iOS 8. I've managed to successfully run from Xcode 6 beta on a device with iOS 8 Beta, but opening the simulator always get the same error I have tried to change the hardware version of iPhone 4s, iPhone 5, ... in the simulator and still gives the same error: "Unable to boot the iOS Simulator".
我正在小牛队同时使用 Xcode 5.1,有什么建议可以解决这个问题吗?在 Mavericks 中运行此模拟器是否可能存在问题,因为仅适用于 OS X 10.10?谢谢.
I'm working with Xcode 5.1 at the same time in Mavericks, any suggestion to solve this? Is a possible problem for run this simulator in Mavericks because is only for OS X 10.10? Thanks.
推荐答案
我在网上找到了一些解决方案后,一组程序对我有用:
After I found some solutions on the web, a combination of procedures worked for me:
关闭 Xcode 和 iOS 模拟器(以及所有相关应用程序)
Close Xcode and iOS Simulator (and all related applications)
将 Xcode6-Beta 安装(或重新安装)到 Applications 文件夹(直接从 .dmg 文件)
Install (or reinstall) Xcode6-Beta to Applications folder (direct from the .dmg file)
打开 Xcode6-Beta 并转到 Xcode -> Preferences -> Locations -> Command Line Tools 并选择Xcode 6.0"(确保您已选择 Applications 文件夹中的那个)
Open Xcode6-Beta and go to Xcode -> Preferences -> Locations -> Command Line Tools and select "Xcode 6.0" (be sure that you've selected the one in Applications folder)
启动 iOS 模拟器并转到 iOS 模拟器 -> 重置内容和设置...
Launch the iOS Simulator and go to iOS Simulator -> Reset Content and Settings...
关闭所有应用程序并重新启动您的 Mac(我取消选中重新打开窗口...")
Close all the applications and restart your mac (I unchecked "Reopen windows...")
打开 Xcode6-beta 并测试 iOS 模拟器
Open Xcode6-beta and test the iOS Simulator
祝你好运
这篇关于使用 iOS 8 测试版打开 iOS 模拟器时出错:“无法启动 iOS 模拟器"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!