在Xcode7.0中手动安装模拟器SDK 8.0

编程入门 行业动态 更新时间:2024-10-10 12:24:35
本文介绍了在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

本文发布于:2023-11-26 05:21:43,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1632797.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:模拟器   SDK

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!