Run iOS Apps on iPhone with iOS 8 through XCode - ios

My iphone is currently running ios 8. When I try to run apps through XCode on my phone I get this error message:
Xcode cannot run using the selected device.
No provisioned iOS devices are available with a compatible iOS version. Connect an iOS device with a recent enough version of iOS to run your application or choose an iOS simulator as the destination.
In XCode under deployment target, there is no option for 8.0 (iOS 8) and the app will not run on my phone.
Is there an SDK I need to download for xcode?
Any help is greatly appreciated.

You need to download Xcode 6, which includes the iOS 8 SDK. You would download this from the Apple developer site, where you downloaded the iOS 8 Beta image from.
https://developer.apple.com/devcenter/ios/index.action

Xcode 5 knows nothing of the existence of iOS 8. You're going to need to get Xcode 6 from this page (direct link) if you want to run apps on your iOS 8 device.
Note that the direct link is only good for the version of Xcode 6 shipped alongside iOS 8 Beta 2. I have no idea what it will do when we get to Beta 3.

The way I got it to work was:
close all instances of Xcode.
open the Xcode 6-Beta
open Xcode 5 so both Xcode's are running at the same time
close Xcode 6-Beta, and after doing that, Xcode 5 will recognize your device as a capable one and you'll be able to deploy to your iOS 8 phone.
The reason you need Xcode 5 is because you won't be able to submit iOS 7 apps to the app store from Xcode 6, it'll give you an error so you need to use Xcode 5.

Related

Is it possible to use Xcode 7.x with devices running iOS 10 beta?

I'd like to check my app's performance on devices running iOS10 beta without using the Xcode 8 Beta. The main reasons for this are to a) retain the ability to archive & upload the app to the App Store, and b) share the app's codebase with others using Xcode 7.x. As far as I understand (I could be wrong), you can't use an Xcode beta to upload apps to the App Store.
I've tried sharing the apps with the iOS10 beta devices via TestFlight. Though this does work it doesn't quite solve the problem of being able to do proper testing and debugging on the beta device. Thanks for reading.
It is possible but only if you install Xcode 8 along side Xcode 7 (see below) and you connect the iOS 10 device to your computer while running Xcode 8. Once Xcode 8 downloads and processes the iOS 10 device, you will then be able to use the iOS 10 device on that same computer while using Xcode 7.
Rename /Applications/Xcode.app (your Xcode 7 installation) to something like /Applications/Xcode7.app. Then install Xcode 8. This way you can have both installed at the same time.
And you are correct that beta tools can't be used to build and submit to the App Store. Near the very end of the beta, Apple will post the GM version of Xcode and will send an email to developers that they are accepting iOS 10 apps. Using the GM version of Xcode 8 you will be able to submit your iOS 10 app.

Will i still be able to run my iOS 8.0 app on my iPhone 6 with iOS 9?

I am a developer and i am thinking about updating my iPhone (8.4) to iOS 9 beta. I know all the pros and cons but i was wondering if, if i were to update to iOS 9, it would still be possible to run my app ( was created in Xcode 6.4, deployment target 8.0) on my iPhone using Xcode 7 beta.
Sure, you can run it with Xcode 7 beta on your iOS 9 device (but not Xcode 6). But you can't submit to App Store with Xcode beta until it's out of beta, so I recommend not taking any Xcode 7/iOS 9-only approaches for backwards compatibility if you want to submit within the next two months.
I Confirm you that with Xcode 7 and iOS 9 you can run your 8.0 target App !
EXTRA : The Only Problem:
There is only a small bug if you're using Parse.com, you can't retrive PFFiles. So in this case you need to redevelop your app in Target 9.0 to make it work
hope it helps

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.

Uploading an Xcode 5 app to an iOS 8 phone

I just had a simple question. I was hoping to update my iPhone 5c to iOS 8 but I have been worrying about something, so I haven't done it yet. I worry that when I update to iOS 8 then I won't be able to put my apps from Xcode 5 on my iPhone (with iOS 8) anymore. This is because I have seen that when you try to put a swift app on a phone with iOS 7, it doesn't work. Please let me know if this is true or not. Thanks!
You are correct to be worried. Once you update your phone to iOS 8 you will no longer be able to install & debug an app on it from Xcode 5.1. You could still build an .ipa manually and install it to your phone using an iTunes, as long as you build the iOS app using an AdHoc Provisioning Profile. If you update to iOS 8, Apple is kinda forcing you into Xcode 6.
UPDATE: rmaddy's comment is correct. You can build/install/debug from Xcode 5.1.1 to an iOS 8 device as long you've installed Xcode 6 and used it with the iOS 8 device.

debug iOS 8 device with Xcode 5.1.1

Am I able to debug using my device, which I just updated to iOS 8? I want to keep using Xcode 5.1.1 if possible, but after updating the device I don't see it in the schema anymore (replaced by "iOS device" placeholder)
You cannot build to a device running iOS 8 using Xcode versions prior to Xcode 6.0 because Xcode won't recognize the OS on your device. To test on iOS 8 devices, you can use Xcode 6 GM (since Xcode 6 isn't out yet on the App Store).
Download Xcode 6 GM in the Apple Developer Member Center.
EDIT
Per #rmaddy's comment, you can use Xcode 5 to test your app on an iOS 8 device (provided it doesn't use code only compatible with iOS 8+), but you must plug the device in once while running Xcode 6+ and allow it to process the symbol files from your device (you can view this in Xcode's Organizer). Then it should work with Xcode 5.

Resources