Install simulator SDK 8.0 manually in Xcode7.0

2019-07-14 02:24发布

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.

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).

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

and

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

from Xcode 6.0.1 to Xcode 7.0 and restarted the mac

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

enter image description here

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

enter image description here

Can anyone help me solve this please?

2条回答
淡お忘
2楼-- · 2019-07-14 02:40

If you can't add an iOS 8 simulator, as an alternative, try to run this app on a device running iOS 8 with developer provision using xcode. This way it will also help to pick most of the LOCs where it is actually crashing. Also, for a random crash you might need to analyze app memory management using Instruments tool (but it also depends on crash reason).

查看更多
Bombasti
3楼-- · 2019-07-14 02:58

you can download it from xcode prefrences -> Downloadsenter image description here

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.

查看更多
登录 后发表回答