Xcode 7 GM缺少iOS 7模拟器 [英] Xcode 7 GM missing iOS 7 simulators

查看:126
本文介绍了Xcode 7 GM缺少iOS 7模拟器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已将Xcode 7测试版升级到Xcode 7 GM,但我缺少iOS 7.1模拟器。我还有Xcode 6,我可以在那里使用7.1模拟器。我试着查看偏好设置 - >下载,但只有8.x模拟器。

I've upgraded my Xcode 7 beta version to Xcode 7 GM but I am missing iOS 7.1 simulators. I still have Xcode 6 and I can use 7.1 simulators there. I tried to look in Preferences -> Downloads but there are only 8.x simulators.

我有部署目标设置到7.0。我可以让应用程序在Xcode 7 beta 6中使用7.1模拟器。

I have Deployment Target set to 7.0. I can get app working with 7.1 simulator in Xcode 7 beta 6.

那么问题出在哪里?在最终版本发布之前,Apple会删除7.x模拟器,但我会在发布时找到它们吗?现在可以启用这些模拟器吗?谢谢

So where is the problem? Before final release Apple remove 7.x simulators but I'll find them with production release? Is it possible to enable these simulators now? Thanks

编辑:
我正在查看Xcode 6的目录

I was looking at directory with Xcode 6

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs

我只有 iPhoneSimulator.sdk iPhoneSimulator8.4.sdk 哪个参考第一个。在Xcode 7中,我有两个文件夹 iPhoneSimulator.sdk iPhoneSimulator9.0.sdk 。那么7.1 Simulator文件夹在哪里?它可能在其他地方吗?因为正如我所写,我有7.1作为模拟器的选项,当我去首选项 - >在Xcode 6中下载我已经下载了7.1个模拟器。

and I have there only iPhoneSimulator.sdk and iPhoneSimulator8.4.sdk which reference to first one. In Xcode 7 I have same situation with two folders iPhoneSimulator.sdk and iPhoneSimulator9.0.sdk. So where is 7.1 Simulator folder? Is it possible that it is somewhere else? Because as I wrote I have 7.1 as options for simulators and when I go to Preferences -> Downloads in Xcode 6 I have 7.1 simulators downloaded.

如果Xcode 7没有得到7.x模拟器,那么我该如何测试我的应用程序当我想使用Xcode 7 Swift 2.0进行开发时到7.x iOS?当我没有iOS 7.x的任何设备

If Xcode 7 don't get 7.x simulators then how can I test my apps to 7.x iOS when I want to use Xcode 7 Swift 2.0 for development? And when I don't have any device with iOS 7.x

推荐答案

我认为你不会找到iOS 7。在较新版本的Xcode中使用x模拟器,因为Apple倾向于只保留最新的Xcode版本。我想你必须安装一个旧版本的Xcode,它支持这个旧版本的iOS /模拟器,可以从Apple的开发者网站上获得。您可以通过重命名在 / Applications 中安装Xcode(旧),以便它与您当前的版本不冲突。是的,如果它们的名称不同,可以在您的机器上安装多个版本的Xcode!然后,查看

I don't think you will find iOS 7.x simulator in the newer version of Xcode as Apple tends to only keep the most recent one with their newer Xcode version. I think you will have to install an older version of Xcode that supports this older version of iOS/simulator, which is available from Apple's developer website. You can install Xcode (old) in /Applications by renaming it so it doesn't conflict with your current version. Yes it is possible to have more than one version of Xcode on your machine if they do not have the same name! Then, look in

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs

使用控制台,只需将模拟器从旧Xcode复制/粘贴到新Xcode即可。我不知道这是否适用于最新版本,但它过去曾经使用过。但请注意,因为Mac App Store在检测哪个Xcode是新的Xcode时会出现问题,如果您决定升级,可能会覆盖您不想要的版本。

using the console and simply do a copy/paste of the simulator from the old Xcode to the new one. I have no idea if this will work with the newest version, but it used to in the past. Be careful though as Mac App Store has issues detecting which Xcode is the new one and might overwrite the version you don't want if you decide to upgrade.

编辑:
这里怎么样?

How about here?

/Library/Developer/CoreSimulator/Profiles/Runtimes

希望这有帮助!

这篇关于Xcode 7 GM缺少iOS 7模拟器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆