Use Xcode 8 with iOS 11 - ios

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.
How can I achieve that?
Apple revealed several new iOS 11 features at WWDC 2017.

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.
You can download a Xcode 9 beta (latest Xcode 9) or get an DeviceSupport folder from other user.
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

Check this out: As of now this is only for Debugging on iOS device not Simulator
Download the SDK from Apple
Copy this iOS 11.0 image file to: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/
Restart Xcode.

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.

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

Related

How to build the .ipa with iOS 7 support in Xcode 11.2.1?

Recently I updated the Xcode to version 11.2.1 and imported an already developed iOS application with Minimum Deployment target as 7. But when i opened the project in Xcode 11 I can find the Minimum Deployment target as 8.
So how can I extend the support for this application for iOS 7 too
using Xcode 11? If yes, then how?
Is it possible to download the iOS 7 simulator in
Xcode 11 and test it?
Is there any official document which says
the Xcode 11 is not providing support for iOS 7 devices?
how can i extend the support for this application for iOS 7 too using Xcode 11? if Yes then how?
Yes, just type the number into the input.
Is it possible to download the iOS 7 simulator in Xcode 11 and test it?
Never try for long time, but I think it's impossible. But you can test with real device. (You need to copy 7.x directory from old Xcode Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport to the this one.)
Is there any official document which says the Xcode 11 is not providing support for iOS 7 devices?
Not sure.

How to run XCode 8 project on IOS 11

I know there are lots of questions like mine but they didnt solve my problem.
I had xcode 8 and the system automatically forced to upgrade to 9.
After that I get lots of error when compiling project in xcode 9 and because of my rush I just need to prepare a new version using xcode 8 for ios 11.
After reinstalling Xcode 8.3.3 again, I dont see xcode 8 in the list of applications ( there is only xcode which is 9 ) but when opening project with "open with" I can choose xcode 8.
After opening project in xcode 8, ios 11 is not in the list of "ios development target" even after copying "developerDiskImage" for ios 11 in this folder:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
Its strange also that why I dont have :
/Applications/Xcode8.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
Any advice would be appreciated
Xcode 8 can't run with iOS 11 (only Xcode 9+).
But wait! There's a way; build an IPA and install it manually with iTunes to the device with iOS 11. But you won't have debug.

Any way to install app to iPhone 4 with Xcode 8 beta?

When trying to run app on my iPhone 4, Xcode 8 beta shows me this message:
This iPhone 4 is running iOS 7.1.2 (11D257), which may not be supported by this version of Xcode.
My app must support iOS 7. I read many answers they say that app build with Xcode 8 beta still can run on iOS 7 devices. So is there a way to install app to iPhone 4 with Xcode 8 beta? Like building the app first, then use a command line to install .app file to the iPhone?
Actually, there is a way. You just need to copy DeviceSupport folder for iOS 7.1 from Xcode 7 to the new one. It's located in:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/7.1
I've tried it and it works.
EDIT: If you don't have the 7.1 files anymore, you can find them here.
If you do not need to debug but only build and put the app on device then you could also use product -> archive to create .ipa file with an adhoc version and then put in on iphone 4 using window -> devices. This works on xcode 8 without any additional files.

iOS 9 not supported by Xcode 6.4

The iOS 9 update is not supported by Xcode 6.4 for testing purpose. is there a workaround to connect my device to Xcode for testing. If not can I roll back my update to ios 8.4.1( previous update ).
There is a way to deploy to iOS 9 devices with Xcode 6.4. I ended up doing this because I of course had updated my phone right away, but I did not quite want to go to Xcode 7 due to Swift 2 and the lack of support by coacoapods, yet.
Here is what I did:
I downloaded Xcode 7, but did not install it.
Instead I browsed inside the dmg file (Show Package Contents on right-click) to /Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport.
I then copied the folder named 9.0 (13A340) into the same location of my current installation of Xcode 6.4.
Lastly I renamed the existing 8.0 (12A365) folder to just 8.0 - I am not sure if this is necessary.
I am now able to deploy to my phone with iOS9 from Xcode 6.4.
I hope this is helpful to somebody!
The iOS 9 update is not supported by Xcode 6.4
You've hit the nail on the head. iOS 9 is not supported in versions of Xcode earlier than iOS 7. Just update to continue developing.
This worked for me to allow me to test my app that was built against the iOS8 SDK (on XCode 6.4) on a physical iOS9 device.
Rename XCode to Xcode 6.4 in the Applications folder
Install Xcode 7 from the downloaded DMG (don't update from the AppStore)
Open XCode 7 and build a test project (it can be an empty iOS9 app) and run it on your physical iOS9 device
Close Xcode 7 and open XCode 6.4
Build your app against the iOS8 SDK and debug on the physical iOS9 device
It seems like debugging on XCode 7 first updates something on the device and then XCode 6.4 can debug properly.
(This is useful for example, if you don't want to migrate your Swift 1.2 code to 2.0 yet)

Can you use XCode6.3 with IOS7.1 SDK

Is it possible to use XCode6 beta with an IOS 7.1 SDK? The new tools are much nicer but I need to build for IOS7
Yes.
1. First download 7.1 SDK - XCode6Beta > Preferences > Downloads > iOS 7.1 Simulator.
Note: XCode6-Beta can co-exist with regular XCode (XCode 5.x). But when you download iOS 7.1 Simulator, it actually gets downloaded into XCode 5's path!! (probably a bug).
Open XCode5's SDKs folder..
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs
Open XCode6-beta's SDKs folder..
/Applications/Xcode6-Beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs
Copy iPhoneOS7.1.sdk from XCode5's to XCode6-Beta's SDK folder.
Restart XCode6-beta
Now if you go to Project's Build Settings, Base SDK, you will see 7.1 along with 8.0.
Enjoy!
I'm using XCode6 and SDK version 8 regularly now, but I had to compile an app with version 7 of SDK, because version 8 was causing a lot of problems on devices with iOS8 installed, while in devices with iOS7 installed everything was running fine.. (!!)
I then:
went to XCode Downloads
browsed through some pages in order to get the latest XCode 5 version and downloaded it
opened the DMG with Image Mounter
rightclicked XCode icon and selected "Show package contents"
browsed Finder through Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/
copied iPhoneOS7.sdk and pasted it to /Applications/XCode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/
restart XCode
now you can select SDK 7.1 as the one to use in your project
this has immediately solved all of my issues with the app
From the command line, you can copy the 7.1 SDK from the current Xcode distribution to the Xcode 6 Beta distribution like this:
cp -r /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk /Applications/Xcode6-Beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/
The example above will recursively copy the contents of the iPhoneOS7.1.sdk folder to the appropriate destination for Xcode6-Beta5 . Copying the SDK to Xcode6-Beta6 would require adjusting the command line to point to the Xcode6-Beta6.app folder.
So we had a very similar issue, our goal was to debug an issue that only appears on iOS 8 (with an app built in xCode 5 on the iOS 7.1 SDK). We were trying to use xCode 6, but found it too unstable, and then decided to go back to xCode 5 and debug using UIAlertNotifications (as we could previously not connect our iOS 8 device to xCode 5)
After connecting our iOS 8 device to xCode 6, when we re-opened xCode 5, our iOS 8 device was recognized and we were able to debug using NSLog statements (break points still caused our app to crash - making it apparent that the issues related to break points are with iOS 8 rather than xCode 6 as others have suggested)
I hope this info is of some help to others out there!

Resources