Using the device simulator for iOS 8 with Xcode 7

2020-08-17 05:18发布

I thinking about port my App to Swift 2 and Xcode 7. But the device simulator only targets iOS 9 and I see no way to download iOS 8.

I have parallel Xcode 6.3 installed. Is there any way to test and debug my app under iOS 8 with the device simulator?

标签: ios8 xcode7 ios9
3条回答
我想做一个坏孩纸
2楼-- · 2020-08-17 05:57

It can be used. You just need to find the file for the 8.x sdk that you want to test on in Xcode 6.x and copy it over to the corresponding Xcode 7 beta folder. You can find the file in this path.

Path: /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport

Xcode will suggest that you fix an error or two, but it should work. Note that when I did it there was still an error and some warnings, and I clicked run anyways and it worked regardless

You may need to click "other" and add "iphoneos8.x" (x is your version number)and if you have it added to the correct location it will work .

查看更多
爱情/是我丢掉的垃圾
3楼-- · 2020-08-17 06:06

Xcode release note says below thing,

Simulator

Xcode 7.0 beta does not support iOS 8.4 and earlier simulator runtimes. (20699475)

Refer this link for more info.

查看更多
淡お忘
4楼-- · 2020-08-17 06:07

You can download older versions of iOS via Xcode.

Open

Xcode -> Preferences -> Components -> Select

all the iOS versions you want ( iOS 8.4 )

Once downloaded, you can get to it in the

Simulator -> Hardware -> Device

I am using Version 7.3.1 (7D1014)

查看更多
登录 后发表回答