Moving previous documentation sets and ios SDKs into XCode 4.5 - xcode

I have a slow internet connection and am trying to avoid downloading previous XCode documentation sets and SDKs.
I just installed XCode 4.5 and see they included no documentation sets for any iOS version. There is also only the SDK for iOS 6.
I deploy on iOS version 4.2 and later. I also had many iOS SDKs for testing and all the docsets.
Is it an issue to copy my 4.2, 4.3, 5.0, etc. docsets and SDKs to the XCode 4.5?
The new install location is different so I'm even wondering where I would move them to.
Thanks in advance

My old Developer folder was in the root HD folder. I don't know if that's typical. The docsets were located here:
HD/Developer/Documentation/DocSets
The simulators were located here:
HD/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs
Unfortunately I wasn't able to get XCode 4.5 to recognize any docset I moved from my XCode 4.2 installation. I had to let XCode 4.5 download them.
I did successfully move content from my developer XCode 4.5 GM to the AppStore XCode 4.5.
The .docset files are stored here:
~/Library/Developer/Shared/Documentation/DocSets
Nothing had to be done as XCode 4.5 from the AppStore recognized what I had downloaded using my XCode 4.5 GM. This is good news because it means future XCode versions will probably recognize them as well.
The simulator files are stored inside the XCode.app itself:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/
I just copied these folders from the XCode 4.5 GM to the App Store XCode 4.5 into the above folder:
iPhoneSimulator4.3.sdk
iPhoneSimulator5.0.sdk
iPhoneSimulator5.1.sdk
My understanding is that the minimum supported deployment target with Xcode 4.5 or later is iOS 4.3 so I didn't move any other simulator SDKs.
Of course, you need to control-click (or right mouse click) the XCode application and select Show Package Contents before you can navigate to the Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/ folder.
I don't know what this means when a new Xcode is release and the App Store installs the update. Will it wipe out these SDKs I moved? I've already made a backup of my modified XCode 4.5 in case they are lost when upgrading XCode through the App Store.
Hope this is helpful.

Related

Monotouch 6.0.6 and XCode 4.5

I've been using MonoTouch 6.0.6 and xCode 4.2 for a while and everything was good. Recently one requirement came for which I had to use iOS6 SDK. I downloaded Xcode 4.5 dmg file from app dev centre. When I try to install, its just an app so it doesn't install. I want my Monotouch to use Xcode 4.5, how do I do? I am stuck on this and not able to find the solution.
Thank you!
You should just drag the app from the .DMG into your Applications folder, open it, and then it'll handle the rest. Monotouch will then use Xcode 4.5.
I got it working. Here is what I did -
a. Opening the DMG file, it mounted on a drive and kept on desktop.
b. Click on the XCode on the mounted drive opened XCode, so I copied the XCode.app to application folder
c. In Monotouch, under preferences-> SdK Location, select the Application/Xcode.app as the apple sdk.
Using this, Monotouch picks up the new SDK and start using iOS6 simulator.

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.

MonoTouch and Xcode 4.3 from the App Store

I removed Xcode 4.2 from my system and installed 4.3 from the App Store.
Now when I want to build my app in MonoDevelop it says
The Apple iPhone SDK is not installed.
Using Xcode I can build and run iOS apps just fine.
I tried reinstalling MonoTouch, but it will fail saying XCode is missing.
Any idea how to get this working again?
Xcode 4.3 moved to a different directory, and MonoTouch can't find it anymore.
Yesterday we released a beta update that fixes this - just enable the beta channel in MonoDevelop (Preferences -> Updates) and then update to MonoDevelop (2.8.6.5) and MonoTouch (5.2.5).
Once we've been able to test the changes a bit more, we'll release these packages to the stable channel.

how to fix old xcode installations on mac

I had xcode 3.2.something. and iwth ios sdks 3.0-3.1-....4.1 and 2 iphone simulator sdks.
Now i installed xcode 4.0 with ios sdk 4.3 something like that.
Now all my previous applications cannot be launched nor on device nor on simulator because there's not a single old sdk available.
so next i reinserted the original cds containing macosx and xcode and reinstalled the first xcode i used, but now there's not one ios sdk available at all.
i've been surfing the net for hours now, andi have a couple of questions:
1)have i had to uninstall the xcode 3.2.x before installing xcode 4?
2)how to uninstall applications on mac??? just to make sure that the answer i've found is the correct one.
3)how can erase the traces of all previous xcodes and their sdks in order to install the original one, now that i learned how to install different xcode versions side by side.
4) now what do you think i should to recover? do i have to back up everything and reinstall mac from the beginning?
thank you
So, your questions:
1. Have I got to uninstall XCode 3.2 before installing XCode 4? - No, you don't, but the XCode installer will overwrite your old copy by default. When installing the newer version of XCode and the iOS SDK you must specify a different install directory (eg, create a new folder in the root of your drive called 'Developer 4' for XCode 4.
2. How can I uninstall XCode? - Normally on a mac you would just drag your application to the trash, but it's a little more complicated with XCode. Refer to the instructions at this link: http://pushkararora.com/how-to/how-to-uninstall-xcode-completely/
3. How can I erase all traces of all previous XCodes? - see the answer above for question 2 :)
You can obtain old versions of the SDK from various unofficial online sources if you need to roll back to iOS 3 SDKs. However, it may not be all that much work to move your apps over to the 4.x SDKs.
ok it turned out that at the beginning i was using xcode 3.2.4 with ios sdk 4.1
The xcode that comes with mac osx only targets mac sdk. No iphone support
So i got xcode 3.2.4 setup from a backup (you can find it online) and installed and this should work
And now i have 3.2.5 using sdk 4.2 and targetting all till 3.0
and also xcode 4.0.2

Xcode 4.3 installation error

When I click on a project on Xcode it loads the old xcode, but I just installed the new XCode 4.3. How can I configure my Mac to load the new Xcode instead of the old Xcode?
I know that I had installed correctly the new Xcode 4.3 because I can still load it just by clicking on the icon of Xcode 4.3, but my old Xcode still somewhere of the hard drive causing it to boot when you click directly on any file of a project on Xcode.
It is very useful to load the Xcode directly from the projects itself vs. loading first the Xcode, then looking for the right project to open.
Thank you in advance.
Xcode 4.3 [is now fully self-contained][1] in the app bundle that is installed in the /Applications folder. The 4.2 installation in the /Developer folder is left intact. The first time you run Xcode 4.3, you'll be prompted to remove old tools.
You have to delete Xcode from /Developer/Applications, and drag the Xcode 4.3 app to /Applications. It should work fine after that.

Resources