简体   繁体   中英

Xcode App Running Issue

I just updated my iPhone 5 to iOS version 10.1. When I tried to run the app that I'm developing on my device I got the following error from Xcode:

"Could not locate device support files. This iPhone 5 (Model A1429) is running iOS 10.1 (14B72), which may not be supported by this version of Xcode."

I have the latest version of Xcode ie 8.0 (I just double checked to see if there are any available updates). I cannot set the deployment target higher than 10.0 either.

What do I need to do? Is there a way to downgrade my device? When there is an update in the future should I wait until the version is released on Xcode?

Actually your iOS version still fresh and xCode SDK still in beta

you can download the beta SDK's from here xCode 10.1 beta SDK download

UPDATE: Now apple have updated Xcode to 8.1 which include the SDK for 10.1, and you can download it from app store.

Xcode 8.1 is now available

Download link.

Note from Apple News:

You can now download Xcode 8.1 from the Mac App Store. This version includes the latest macOS SDKs for building apps that use the all-new Touch Bar on the new MacBook Pro. To develop apps for the Touch Bar, you'll need a Mac running Xcode 8.1 on macOS Sierra 10.12.1 (12B2657) or later.

There is an option in order to do not download full xcode, you need to download files from this topic (in Update comment)

Then you need to copy 10.1 (14B65) folder to /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/

so the full path will look like:

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/10.1 (14B65) with two files in it: DeveloperDiskImage.dmg.signature and DeveloperDiskImage.dmg

It worked fine for me.

Updates between iOS and macOS are independent though if you are developer they are not because iOS and Xcode have to match. In my case my iOS upgraded automatically but my Xcode did not, and could not, because I had postponed the upgrade of my macOS (laziness). After I upgraded my macOS my Xcode could also upgrade to the right version suitable for the iOS version on my iPad and everything worked fine again.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM