55

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.

Nazmul Hasan
  • 10,130
  • 7
  • 50
  • 73
  • @holex Why down voted me could you tell me please . i want xcode 8 for iOS 11 – Nazmul Hasan Jun 29 '17 at 15:54
  • Just so you know, that setting means: whats the minimum OS version. You are saying: this app runs on 10.1 and higher. (At this same time, you really should use Xcode 9 for the iOS11 simulator) – benc Sep 26 '17 at 18:48
  • 1
    Can someone please upload his DeviceSupport folder for iOS 11 on Google drive and share the link? – Ali Nadalizadeh Sep 27 '17 at 18:48
  • not run iOS 11 simulator Xcode 8.2.1 any idea without Xcode 9.2 install run iOS 11 simulator working... – Ramani Hitesh Nov 01 '17 at 09:03

4 Answers4

63

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: Use Xcode 7 with iOS 10

pkamb
  • 33,281
  • 23
  • 160
  • 191
yudun1989
  • 996
  • 9
  • 23
  • 1
    Note that this will only allow you to debug your code running on an iOS 11 device in Xcode 8. It will not allow Xcode 8's iOS Simulator to run iOS 11. So you'll need to have a physical device running iOS 11 for this. – Brian Kendig Jul 25 '17 at 20:16
  • Thanks! Nice trick. This worked for me. The command line tools selection of the other answer didn't work. – Juan Sagasti Aug 15 '17 at 10:59
  • 5
    It seems not be working with Xcode 9 beta 6 and iOS 11 (15A5361a) :/ – ricardopereira Aug 24 '17 at 15:19
  • make sure you copy the correct folder which has DeveloperDiskImage.dmg file – Ali Nov 08 '17 at 18:38
  • I had to use it with https://stackoverflow.com/a/44484076/849616 to make everything work with Xcode 9.4 and Xcode 8.3.3. – Nat Jun 15 '18 at 10:58
60

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.
jscs
  • 63,694
  • 13
  • 151
  • 195
Sour LeangChhean
  • 7,089
  • 6
  • 37
  • 39
7

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

Daniel Bonates
  • 105
  • 1
  • 7
5

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

fluffyBatman
  • 6,524
  • 3
  • 24
  • 25
ingconti
  • 10,876
  • 3
  • 61
  • 48