Is it possible to install iOS6 SDK on Xcode 6-beta? - xcode

I noticed that there are no preview or simulator for iOS6 in Xcode 6-beta, so I was wondering is there any way that I could add it manually ?

No.
Apple only support iOS7 and iOS8, and they're strict with that. As a result, only iOS7/8 simulators are available in Xcode 6.
If you want to run on an older simulator, you need to develop on an older version of XCode.

Not possible. But: you can still test on a iOS 6 device from Xcode 6. I keep an old iPhone 4 for this (look at eBay).
EDIT: there is another way - install Xcode 5 on a virtual machine (e.g. VMWare Fusion) running Mavericks.

iOS6 simulator is available in Xcode5

No, the earliest SDK you can get for Xcode 6 is 7.1. By default, the iOS 7 simulator is not installed but you can install it by going to preferences, then to downloads and installing it from there.
To run iOS 6 applications, try googling around for an earlier Xcode version (late versions of 4) and these should have the simulator!
Hope that helps!

Related

OSX Migration Assistant seems to have ruined XCode 5 & 6. How to fix?

I had XCode 5 installed on my old Mac, with iOS6 & 7 simulators. On migrating to a new Mac (both running Mavericks) I now have XCode and XCode 5 installed, the former being XCode 6.x. I think XCode demanded to be upgraded because I wasn't using iOS8 previously, and on my old Mac XCode won't start without me letting it download updates.
Now, my XCode apps don't have simulators and when I installed them, things just don't work. XCode 5 launches simulators with a black screen even after resetting the simulator and force quitting, for example.
Is there a way to fix this or has everything just gone wrong and I should delete all the xcode apps and re-download/install?
I was previously targeting iOS 6/7 and while I'm happy to drop iOS6 support now, I'm unclear which XCode I should use.
Open the App Store and check if your Xcode 6 is up to date.
I would recommend dragging each Xcode.app file to the trash and downloading a fresh install of Xcode 6 from the App Store.

Is it possible to install iOS 7 SDK on Xcode 6?

I have Xcode 6 installed but realise that I am only able to develop for iOS8. I am aware that this beta development kit is meant for the development of the iOS 8 beta release but I am in a position where I don't have the time yet to develop for it but wish to take advantage of some of Xcode's new features while I am developing for my current iOS 7 apps.
What can I do to get the iOS 7 SDK installed on xcode 6?
Seems like if you symlink the relevant SDK from a previous installation of Xcode to the Xcode 6 Beta directory, Xcode 6 will be able to use it. Assuming you still have Xcode 5.1.1 on your machine, try the following in terminal:
ln -s /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk /Applications/Xcode6-Beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk
This should link the iOS 7 SDK for iPhone (not sim), allowing you to select iOS 7 as the Base SDK in Xcode 6 Beta. If you want to do this for the simulator, replace iPhoneOS.platform with iPhoneSimulator.platform.
NOTE: Just because you have the iOS 7 SDK now doesn't mean it'll build. I'm personally having trouble with the fact that Xcode 6 Beta is using the Apple LLVM 6.0 compiler, which apparently isn't compatible with some of the stuff I'm trying to build.
ref: https://stackoverflow.com/a/11424966/2383003
Just posting so that someone might find it useful: I wanted to debug my app in iPhone running iOS 7.1, in XCode 6.0.1. The previous iOS version was not being listed in the settings page, to choose as base SDK/deployment target. (I'm using OS X 10.10 Yosemite). I installed both XCode 6.0.1 and Xcode 5.0.1 and copied
/Application/XCode501.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk
to
/Application/XCode601.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/
Now I'm able to run iOS 7 apps from XCode 6.0.1.
I changed the deployment target just fine and installed on my iOS7 iPhone 4s all the same. You can do all your development this way and then use 5.1.1 to make your relevant builds. I wouldn't advice to build apps for production in this beta environment even if you could.
Just repeating Christian's comment (on Ziewvater's answer) so it's more prominent:
What's strange is the fact that after adding the symbolic link to my Xcode folder, I see my device twice with the exact name and with some infos (iOS build number, model, device identifier) in the target selector in the upper left corner of Xcode. Depending on which of the both entries I chose, my app works fine or not, no matter which BASE SDK I chose. ??! Anybody experiencing the same?
This is exactly my experience also! Me and my team were tearing our hair out trying to understand why some builds seemed to be working and others were not.
It looks like Apple must be ignoring the base SDK (or target... or something) when you pick the wrong device from the list.
in Xcode 6.1.1 (Window -> Preferences - Downloads) you can install iOS 7.1 simulator. unfortunately it doesn't install iOS 7.1 SKD. if you set deployment target to 7.1 all builds without any trouble. be worry!!!! it is up to you to check the compatibility with 7.1 (SDK is still 8.1). so or so, all runtime trouble should be seen in simulator. i use this approach to build for my iPhone 4 in swift, where iOS 7.1.2 is the last available. (simply don't use any classes available only for newer devices :-))

Xcode 5.0 testing in iOS 5.0.1 Simulator

I have a customer who has reported an issue that my app instantly crashes after starting on iOS 5.0.1 on an iPad 1, and I wanted to test it.
How is it possible to run an app with Xcode 5.0 on an iOS 5.0.1 Simulator, as it is not shown in the list of available downloads.
See this answer, it might help. (Please note that I haven't tried it.)
If it really is impossible on Mavericks, maybe you could consider installing an older OS X version in a VM?

Uninstall xcode 4.5 (iOS 6)

Just realised I've made a mistake of updating xcode 4.5 (iOS 6) as it causing problems.
How to uninstall xcode 4.5 (iOS 6)? safely? as iOS 6 is beta. I want to go back to xcode 5.1.
iOS6 is no longer beta. So if you installed Xcode 4.5 from the store, you already have the release version of Xcode 4.5. If not, get it from the store.
If you want an older version of Xcode, look here.
There are cases where you may not want to upgrade to the latest version of Xcode.
In my company there are still customers with iPhone 3 that are running iOS 4.2.1 and Xcode 4.5 won't generate code for it. Xcode will generate for 4.3 upwards.
Surprisingly I have an iPhone 3 (A1303) that has been upgraded to iOS 6.0 and Xcode won't generate code for that either.
So, for those that do need to downgrade, you use the link that #leo posted to get hold of the dmg for the version of Xcode you want (4.4.1 probably) and mount it. You then find the existing Xcode (in your application folder) and drag it to the waste bin, then drag the downgraded Xcode to the application folder. You may need to re-install the command line tools, if you use them. Make sure you get the version for your Mac's OS.

Does xcode4.5 support ios4.3 simulator or prior?

I have upgrade to xcode4.5 from 4.4, but i can't find ios simulator 4 or prior within it. I open Xcode menu, preference, downloads, i can see simulator5 and 5.1 only. I am not sure whether xcode4.5 support ios simulator 4 and debugging with ios4.3 and prior.i know almost iphone and ipad people upgrade their ios to 5 already. but we have some project runs in ios 4.3.does someone know how to install simulator 4 in xcode 4.5?
thanks in advance.
Looks like it has been removed from xcode 4.5 on Mountain Lion:
xcode 4.5 runs ios 4.0 simulator (NOT)
According to Apple you can still set the deployment target for 4.3 though:
https://discussions.apple.com/docs/DOC-3461
The minimum supported deployment target with Xcode 4.5 or later is iOS 4.3.

Resources