在Xcode7.0中手动安装模拟器SDK 8.0 [英] Install simulator SDK 8.0 manually in Xcode7.0

查看:87
本文介绍了在Xcode7.0中手动安装模拟器SDK 8.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

众所周知,Xcode 7.0不再支持iOS 8模拟器.因此,当我转到下载首选项时,我只会找到iOS 8.1模拟器及更高版本.但是我确实需要在iOS 8.0上测试我的代码,并且我没有任何设备支持该版本,因此我需要在模拟器中执行此操作.

It is known that Xcode 7.0 does not support the iOS 8 simulator any more. So when I go to the download preferences I only find the iOS 8.1 simulator and higher. But I really need to test my code on iOS 8.0 and I don't have any device supporting that version, so I need to do this from the simulator.

我下载了Xcode 6.0.1(以提取iOS 8.0模拟器)并将其安装在我的应用程序中,但是我无法运行Xcode(因为它无法在El Capitan上运行).

I downloaded Xcode 6.0.1 (to extract the iOS 8.0 simulator) and installed it in my applications, but I could not run Xcode (since it cannot be run on El Capitan).

所以我想做的是复制/粘贴iOS 8.0模拟器:

So what I tried to do is copy/paste the iOS 8.0 simulator:

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.0.sdk

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS 8.0.simruntime

从Xcode 6.0.1升级到Xcode 7.0,然后重新启动Mac

from Xcode 6.0.1 to Xcode 7.0 and restarted the mac

然后我重新打开Xcode 7.0,然后转到Window-> Devices并输入以下内容:

I then re-open Xcode 7.0, and go to Window -> Devices and enter the following:

然后我点击创建",但是一旦创建它就会显示为iOS 9.0,并且一旦我在该模​​拟器上运行代码,它就会将操作系统读取为9.0,而不是8.0

I then hit "Create", but once created it shows up as iOS 9.0, and once I run the code on that simulator it reads the OS as 9.0 and not 8.0

有人可以帮我解决这个问题吗?

Can anyone help me solve this please?

推荐答案

您可以从xcode首选项中下载->下载

you can download it from xcode prefrences -> Downloads

对于手动操作,您可以从旧的xcode路径(/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone Simulator.app/Contents/MacOS/iPhone Simulator)中获取它,并将其粘贴到具有相同路径的新xcode中.

for manually you can get it from old xcode path(/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone Simulator.app/Contents/MacOS/iPhone Simulator) and paste it new xcode with same path.

这篇关于在Xcode7.0中手动安装模拟器SDK 8.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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