iOS 9 not supported by Xcode 6.4 - ios

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)

Related

Swift Code in XCode 7.3.1 not working in iOS 10

I am building an iOS app using Swift 2.2, XCode 7.3.1, which is going to go live very soon. I upgraded my iPhone to iOS 10.0 and now when I try to run my code in my iPhone, I am getting the error -
At this stage of my project I don't want to upgrade to XCode 8.0 and use Swift 3.0. Is there any way I can make my code written in XCode 7.3.1 work in iOS 10. My code is working well for iPhones having iOS versions 9.3.2
Thanks
No, Xcode 7.3.1 does not support iOS 10. You cannot. You will have to upgrade to Xcode 8.
And, you should upgrade because it also provides you Swift 2.3 which will help you run latest SDK for iOS 10 etc and the transformation is automatic.
Read here: https://developer.apple.com/swift/blog/
To detect device in XCode you must install software with appropriate version or system will show you the message you have mentioned in the question.
A workaround as per your wish is that every time you make an IPA of your release and install it in the device you want to run with it (that could be a hard time if you deploy several times a day). Remember there is an upward compatibility but no downward compatibility that is if your deployment target is 8 or above you can run the IPA on device having iOS 8 or above but not in iOS 7.
Perhaps you may get some issues on running it on new iOS because of the some obsolete or new features, and to fix that you must upgrade XCode and compile your code on it.
Hope that helps!
Copy the folder 10.0 (14A345) in DeviceSupport folder of Xcode8 to
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
It works for me :)

How to run swift 1.2 code on an iOS 9.1 device?

I'm trying to make an app in Swift 1.2. Obviously, Swift 2.0 introduced a lot of changes but before I migrate the whole project over, I would like to be able to test it while being still on 1.2.
But my iPhone is now running iOS9.1 and my Xcode 6.4 doesn't seem to recognize the iPhone for me to test.
Is there any way to run my Swift 1.2 project on my iPhone running iOS9.1? Or do I need to downgrade my iPhone in order to test the 1.2 project?
You can do what you want. But you need to take a few steps. You can get Xcode 6 to recognize your iOS device with iOS 9 but in order to do so, you need to install Xcode 7.1 and run it. Then connect your iOS device. Once Xcode 7.1 has recognized your iOS device with iOS 9 and processed its symbols you can exit Xcode 7.1 and start Xcode 6.4. Open your Swift 1.2 project and you should now be able to test on the iOS 9.1 device.
Before installing Xcode 7.1, rename your Xcode 6.4 application. For example, go to Applications and rename Xcode to Xcode6.4. This will allow Xcode 7.1 to be installed at the same time.
You can register your device with apple account and then create archive .ipa file on your machine and then using http://www.diawi.com/ this link to upload your .ipa file and generated link past in your phone browser and install it.

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.

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!

How to deploy iPad app for iOS 6.1 from Xcode 5

I am new to iOS. With iOS 7 release I am struggling to find how to target my app for previous versions but building from new iOS 7.
I do not know if at all this is possible. but iOS has changed app UI totally, but can not do all change now. So I have been told to build it on new version but target should be for old, so that no UI changes to be done.
Something like building from Xcode 5 but iOS should be 6.1. I do have both Xcode running on my Mac.
If I open both it shows: Xcode 5 - iOS 7, Xcode 4.6 - iOS 6.1. How can I use Xcode 5 to target iOS 6.1?
As far as I know you can't deploy only for iOS6.x using xcode 5, but you can deploy for iOS7 and iOS6, setting the deployment target ad Raptor said.
If you want to deploy only for iOS6 you can download the old xcode 4.6.3 from apple site and make the procedure from there.
I guess your question is How to build iOS app with iOS6.1 SDK in XCode5. Am i right?
You must install iOS6.1 SDK (iphoneos6.1 not simulator iOS6.1) to your XCode first. This question Is it possible to install iOS6 SDK on Xcode 5? could help you to install iOS6.1 SDK.
Than you could configure your project using iOS6.1 SDK to build your app like below:
If you are looking to test your app on lower iOS simulators.
go to Xcode - > Preferences - > Downloads
Over here download the desired simulator.
Once you have downloaded and installed it you can test your application on lower iOS versions.

Resources