问题
This iPhone 8 (Model A1863, A1905, A1906, A1907) is running iOS 12.0 (16A5308e), which may not be supported by this version of Xcode. (Version 9.4.1 (9F2000))
- can anyone help with iOS 12.x device support files from Xcode 10 beta?
回答1:
iOS 12 is only supported by the beta of Xcode 10 or higher.
If you want to use your iPhone 8 with this iOS version (NOT RECOMMENDED) with your Xcode 9.4 you can try to download the last beta of Xcode 10 and after connecting the iPhone to the mac go to this folder:
/Applications/Xcode10.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
You can see the iOS version folder of the iPhone, copy and past it to the same location in your Xcode 9.4 folder.
After this you should be able to deploy to your iPhone 8.
回答2:
As answered by @Kerberos you can copy the iOS 12 device support files to:
/Applications/Xcode10.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
👉 https://github.com/Yatko/iOS-device-support-files
回答3:
The link provided by Yatko is not supporting the newest iOS 12 versions (public release).
This repository has more iOS versions to offer: https://github.com/iGhibli/iOS-DeviceSupport
Copy the files to the same path as described by Kerberos.
回答4:
Another convenient way to achieve this without downloading Xcode 10.
https://github.com/sauravexodus/xcode-9-ios-12-support
Note: If you have multiple Xcode versions then be careful with the path written in install.sh
file.
回答5:
Just download latest OS SDK (iOS 12.2) and paste it on respective location.
Downloadable URL:
13.2
13.1
13.0
12.4
12.3
12.2 (16E226)
12.1
12.0 (16A5288q)
11.4 (15F5037c)
11.3 (15E5189d)
11.2
11.1
11.0 (15A372)
10.3 (14E5239d)
10.2 (14C89)
10.1
10.0 (14A5339a)
Follow below step.
1) Unzipped downloaded file
2) Right click on Xcode and click on Show Package Content
3) Then paste your file on path
Contents -> Developer -> Platforms -> iPhoneOS.platforms -> DeviceSupport
4) Restart Xcode
Is it very convenient, saving the trouble of updating Xcode. what? You can't find a new Device Support file! Ok, you can copy it out from your friend's latest Xcode, or download from here
Update:
The added iOS Disk image for iOS 13.0, 12.3 and iOS 12.4
来源:https://stackoverflow.com/questions/51215836/ios-12-not-supported-by-xcode-9-4-could-not-locate-device-support-files