debug iOS 8 device with Xcode 5.1.1 - ios

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.

Related

Trying to Simulate my Xcode Project on my Personal iPhone

Currently have an iPhone 8 plus that is running iOS 12.1 and Xcode 10. When I connect my iPhone to my laptop and and go to Window > Devices and Simulators, I see my iPhone but I get the warning
"This iPhone 8 Plus (Model A1864, A1897, A1898, A1899) is running iOS 12.1 (16B5077c), which may not be supported by this version of Xcode."
Not sure how to resolve this warning.
You are running a beta version of iOS, so you also need the beta version of Xcode.
Download it from Apple's developer site

After updating to iOS 9 my device is not supported by Xcode 6.4

The iOS 9 (my device iOS) update is not supported by Xcode 6.4 for testing purposes. Is there a way to connect my device to Xcode for testing?
It is showing me these messages:
iPhone may be running a version of iOS that is not supported by this version of Xcode.
Xcode 6.4 doesn't contain iOS 9 SDK, that's why it isn't working. You need to update your Xcode to 7.0 (available on the AppStore)
Xcode 6.4 doesn't support iOS 9, If you want to debug your device then you have to update Xcode. And if you just want to check app in device then create a diawi link and install in phone(which is tedious process).

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.

Run iOS Apps on iPhone with iOS 8 through XCode

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.

iOS 6.0 simulator disappeared

I'm not able to test my app on iOS 6.0 simulator, because it disappeared. I definitely remember I downloaded it and for some time I could use it. When I click on more simulators to download it now, there is only iOS 7.0 and iOS 6.1 simulators. And for all I know, I have set the deployment target to 6.0 everywhere. Any ideas?
Apple withdrew the 6.0 simulator at the server end, so it is no longer listed. If you really want it, you can move it into Xcode from another version of Xcode (it's obvious where it goes).
The latest Xcode (5.1 as of writing this) only supports iOS 6.1 simulator. If you wish to test on iOS 6.0, you need to test on a device.
Technically speaking, there is very little API difference between 6.0 and 6.1, so you can test 6.1 for most scenarios just fine.
Still we can use ios 6 simulator in xcode 5.1.
If you cant see iOS 6 simulator in downloads. Try this one,
download xcode 4 sdk and copy the ios 6 simulator sdk from xcode4,
[Application->xcode 4 ->contents->developer->platforms->iphone
simulator platform->developer->sdk folder.]
And paste ios 6 simulator sdk to xcode 5, [Application->xcode5->
contents->developer->platforms->iphonesimulator
platform->developer->sdk folder]
I followed this steps and got ios 6 simulator,. see below

Resources