How to run XCode 8 project on IOS 11 - ios

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.

Related

Use Xcode 8 with iOS 11

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

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)

iOS 9 not supported on Xcode 6.3

I downloaded the iOS 9 beta for the iPhone 5s and wanted to test an application that I have finished but now it says that my iPhone is an ineligible device. Is there a way I can still run apps on my iPhone without downloading the Xcode 7 beta?
You can RUN App on iOS 9 device using Xcode 6, But firstly you need to build your app on XCode 7, after that it will support on XCode 6.
I dont know the reason.
I have checked this on My Mac.
[EDIT]
Steps
Build the project on Xcode 7 while Xcode 6 is opened on the same
project.
Disconnect the device and reconnect it.(Now u can run ur app on XCode6, It may take little time to load device)
When i have checked iOS9 with Xcode6, Bugs are very less.
So i have plan to support iOS9 with XCode6 for quick release. Later i will do for XCode7.
You can build to an iOS 9.0 or 9.1 beta device from Xcode 6.4, not out of the box though.
Download Xcode 7.0 and/or Xcode 7.1 beta dmg, and copy the
Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/9.0 (13A340)
from Xcode 7.0 or:
.../9.1 (13B5110e)
from Xcode 7.1 beta folders to corresponding folder in your Xcode 6.x.
After restarting Xcode iOS 9.0/9.1 devices will no longer be marked an ineligible.
If you installed iOS 9 beta onto your iPhone, then you cannot develop on it without Xcode 7.
However, this is not a completely terrible thing; you can readily have both Xcode 7 and Xcode 6 on the same computer.
(What you cannot do, according to Apple, is revert your iPhone back to iOS 8 - but there are some comments below from people who were able to do it.)
Install the latest XCode. Keep both versions on your Mac. Give Keep Both when installing the new XCode and do not give Replace present XCode during the installation.
Go to application, right click XCode --> show package contents. Copy the latest version from the path:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
and copy to the Xcode you are currently working in the same path. Find the screen shots below and start working.
Happy coding.
Don't need build your project at Xcode 7.0, just open and select your device, after that, open your Xcode 6.4 and your device will automatically update the necessary things to build app by Xcode 6.4
Not the easiest or correct way. But if you really have to test once or twice in the device.
In Xcode,
Product -> Archive
Build for Ad-Hoc Distribution
Connect the device
Open Itunes, Select the device,
Select Apps, Drag and drop the .ipa file generated in step 2 to itunes
Press install
App will be installed to the ios9 device.
No, you have to download Xcode 7 beta since tools like the compiler and debugger are part of the IDE.
As stated on Apple Developer Website (here), Xcode 7 Beta has the Swift 2 compiler and SDK for iOS 9. My guess is, your current Xcode doesn't know how to compile for iOS 9 SDK.
However, Apple doesn't specifically mention Xcode 7 as a requirement. It states that OS X Yosemite or later is required.
I don't think you can specifically download an SDK that isn't supported inside Xcode. For example, you can go to Xcode -> Preferences -> Downloads and under Components you may see the iOS 9 Simulator.
If you go to the iOS 9 SDK and download it, it seems to only download the device OS and not the entire SDK.
In conclusion, I believe that the SDK "kit" is integrated with Xcode 7 that would allow you to develop on your iOS 9 Device. Without upgrading, I don't see you being able to do that. I could be wrong though.

Adding the iOS6.1 simulator to Xcode 6

I have tried to add the iOS6.1 simulator from the Xcode 4.6.3 package to Xcode 6, but it doesn't show up.
I followed the instructions on this post: How to Install Older iOS Simulators in XCode 4.2.1 (SDK5.0) to set it up and copied the "iPhoneSimulator6.1.sdk" to /Applications/Xcode/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDK. However it doesn't show up when trying to create a device.
Are there any extra steps I need to take?
You can install Xcode 5.1 side by side with Xcode 6 to run the iOS 6 simulators. It seems you can't link all the simulators into the same version of Xcode any more.
You can however move apps compiled for one simulator to the other. Just be careful which are i386 and which are 64 bit. See Install iOS 6 simulator on Xcode 6
Xcode 6 does not support simulators older than iOS 7.

Resources