XCode 3 -> 4 confusion - xcode

I've just upgraded from OSX 10.6 -> 10.8. I had XCode 3.2.6 installed and I installed 4.5 through the appstore. I appear to have both versions installed now (which I don't mind) but I'm lost as to where everything lives now, /Developer doesn't seem to have anything new in it.
Also, my commandline tools like svn have stopped working now, they are not found. I know XCode 4 has newer and better tools (newer SVN, Git, etc) but how do I get it set up nicely? I thought cmd-line tools were part of the XCode 4 installation.
Uninstalling 3.2.6 is fine if needed, I just want to avoid clashes.

To answer your specific questions, Xcode 4.5 is in your Applications folder. It is packaged as a single app instead of using the /Developer folder. Xcode 3.2.6 is in your /Developer folder. You can keep both versions installed.
Xcode 4.5 does not install the command line tools initially. You can install them from Xcode's Downloads preferences. You can also install them by choosing Xcode > Open Developer Tool > More Developer Tools.

I'd look up any transition guides for moving from Xcode 3 to 4. There are lots of different features, so it may take a while to get used to the new layout and where Xcode puts things.
Try these links for starters:
http://docs.xamarin.com/ios/tutorials/transitioning_from_xcode_3_to_xcode_4
http://beginning-mac-programming.timisted.net/xcode-4-general-overview.html

Related

How can I have two versions of Xcode without conflicts?

My stable version of Xcode, the previous one to Xcode 8, launched two days ago, use provisioning profiles for APNs and many other data. I'd like to install Xcode 8 to learn about the new features but I'm scared about damaging my current working Xcode version because the last time I installed a beta Xcode version I remember I couldn't send packages from the stable version, something like files from two versions overlapped becoming "main files" those from the beta version.
I need precise instructions about how to install a Xcode beta version in El Capitan having and older working version without damaging anything.
By the way... is it possible to install Xcode 8 in El Capitan? And submit compiled app from this version?
You can download Xcode-beta 8 from https://developer.apple.com as usual and you can Xcode 7 & 8 side by side as they have different names Xcode-beta and Xcode (see image)

Downgrade Xcode 5 to Xcode 4.6.1

I have been trying to research a way that I would be able to revert back to Xcode 4.6.1, I can't seem to find a solution.
I've seen that in the past people have downgraded their Xcode.
Is there a way that I can downgrade Xcode 5 back to Xcode 4.6.1?
I have older versions of apps which clients do not wish to upgrade. However I still need to make amendments to theses applications. I need them to remain the same.
Is there any way that I can downgrade Xcode?
Move Xcode 5 to the Trash. Download and install Xcode 4.6. You can download older versions of Xcode from the following URL:
https://developer.apple.com/downloads/index.action
You can also have both Xcode 4 and 5 installed. You will have to rename your existing Xcode 5 app from Xcode to another name like Xcode5 before you install Xcode 4.6 in the Applications folder.
I followed your instruction to downgrade xcode 5.1 to xcode 4.6.1. The steps seems to work, however, when I try to install the command line tool, the Components tab of the Downloads preferences panel shows "No components are available". How do I get the command line tool to show up in the component panel?
Before the downgrade, with xcode 5.1, I did "xcode-select —install" to install command line tool. I assume it has been removed when I dragged the xcode 5.1 to the trash.

How to downgrade Xcode to previous version?

I have to use Xcode occasionally, and have now come across a problem where I've upgraded to Xcode 4.6, but another piece of software I'm using doesn't support it, so I need to go back to Xcode 4.5.
I'm not used to the way Macs work in general, so if the answers provided could be written with that in mind, that'd be helpful. :)
I'm assuming you are having at least OSX 10.7, so go ahead into the applications folder (Click on Finder icon > On the Sidebar, you'll find "Applications", click on it ), delete the "Xcode" icon. That will remove Xcode from your system completely. Restart your mac.
Now go to Xcode Releases page or Apple Developer More Downloads and download an older
version of Xcode, as needed and install. You need an Apple ID to login to that portal.
After install, you can also switch between multiple versions:
Xcode > Preferences > Locations > Command Line Tools
When you log in to your developer account, you can find a link at the bottom of the download section for Xcode that says "Looking for an older version of Xcode?". In there you can find download links to older versions of Xcode and other developer tools

Is it possible to install Xcode 4.3 and Xcode 4.5 side-by-side on Mac OS X 10.7.4?

Is it possible to install Xcode 4.3 and Xcode 4.5 side-by-side on Mac OS X 10.7.4?
I'd like to install the preview but would rather have some confirmation before going ahead.
The Release Notes make no mention of Xcode 4.3.
Yes, if you download your Xcode versions from the developer site, you can just put them in two different folders. They can even be installed in the same folder if you give the .app bundles two different names.
You can also keep both icons in the Dock.
Additionally for command line tools use command xcode-select to switch current xcode.

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

Resources