Use Xcode 8 with iOS 11

IosXcodeIos11

Ios Problem Overview


I want to use Xcode 8 with iOS 11.

should I upgrade my Xcode. However, my code can't be built by the new compiler, so I want to stay with Xcode 8.

enter image description here

How can I achieve that?

Apple revealed several new iOS 11 features at WWDC 2017.

Ios Solutions


Solution 1 - Ios

As of now this is only for Debugging on iOS device, not Simulator

Xcode 8 could not support unless you have the DeviceSupport folder for the iOS 11 version.

  1. You can download a Xcode 9 beta (latest Xcode 9) or get an DeviceSupport folder from other user.

  2. Simply copy it to your folder or create an symbolic link

sudo ln -s /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/11.0\ \(15A372\) /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/11.0

reference: https://stackoverflow.com/questions/37945376/use-xcode-7-with-ios-10

Solution 2 - Ios

Check this out: As of now this is only for Debugging on iOS device not Simulator

  1. Download the SDK from Apple
  2. Copy this iOS 11.0 image file to: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/
  3. Restart Xcode.

Solution 3 - Ios

I did this and it's fine, I still work both on comercial app using Xcode 8 + Swift 3 and exploring Xcode 9 beta with Swift 4. Just download the Xcode 9 and, inside Xcode 8 preferences, set the Command Line Tools to use the 9.0.

Xcode Preferences > Locations

Solution 4 - Ios

I preferred to copy ALL the folder:

/Volumes/**HighSierra**/Applications/Xcode-**beta.app**/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/11.0\ \(15A5278f\)

to:

 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/**11** 

I can confirm I can run on my iPhone 7 with iOS 11

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionNazmul HasanView Question on Stackoverflow
Solution 1 - Iosyudun1989View Answer on Stackoverflow
Solution 2 - IosSour LeangChheanView Answer on Stackoverflow
Solution 3 - IosDaniel BonatesView Answer on Stackoverflow
Solution 4 - IosingcontiView Answer on Stackoverflow