简体   繁体   English

为什么我不能在Yosemite的Xcode中看到iOS 7.0模拟器?

[英]Why can't I see the iOS 7.0 simulator in Xcode on Yosemite?

I need to do some testing on an iOS 7.0.3 Simulator, but when I go to Preferences > Downloads in Xcode (6.0.1) there is no iOS 7.0 Simulator under the Components section. 我需要在iOS 7.0.3模拟器上进行一些测试,但是当我转到Xcode(6.0.1)中的首选项>下载时,组件部分下没有iOS 7.0模拟器。

Could it be because I am running Yosemite? 可能是因为我在运行约塞米蒂? I've heard of Mavericks machines losing support for iOS 6.0, but couldn't find any definitive answer on whether Yosemite has removed support for 7.0 simulators. 我听说Mavericks机器失去了对iOS 6.0的支持,但是对Yosemite是否已经取消对7.0模拟器的支持无法找到任何明确的答案。

It's because you're on Yosemite. 这是因为你在优胜美地。 It doesn't support 7.0 anymore. 它不再支持7.0了。 Had the same issue. 有同样的问题。

XCode 6.1 in Yosemite starts with 7.1, if you need to test older iOS versions you can still install XCode 5.X from Apple's developer downloads site using your developer account. Yosemite中的XCode 6.1从7.1开始,如果您需要测试较旧的iOS版本,您仍然可以使用您的开发者帐户从Apple的开发人员下载站点安装XCode 5.X. You can have both versions installed in the same machine. 您可以在同一台计算机上安装这两个版本。

  1. Open iOS Simulator is at /Applications/Xcode.app/Contents/Developer/Applications/iOS\\ Simulator.app . 打开iOS模拟器位于/Applications/Xcode.app/Contents/Developer/Applications/iOS\\ Simulator.app

  2. Go to Hardware > Devices > Manage Devices 转至硬件>设备>管理设备

  3. Add a simulator -> Download more simulators > Download iOS 7.1 Simulator 添加模拟器 - >下载更多模拟器>下载iOS 7.1模拟器

You can just copy simulator and framework from previous versions of Xcode. 您可以从以前版本的Xcode复制模拟器和框架。 I use this method when I need to compile or test 我需要编译或测试时使用此方法

试试这个iOS模拟器 - >硬件 - >设备 - >管理设备,并根据需要添加/删除它们。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM