how to uninstall xcode and install another version? [duplicate] - iphone

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Uninstall Xcode 4 and use Xcode 3
I am Abbas. I am new to iPhone Programming.
Tomorrow I have updated my xcode to 4.2 from version 3.2, But i am having problem to use it.
I have to uninstall xcode 4.2 from my mac and install xcode 3.2.
I have setup of both the version, but i do not know the procedure to uninstall xcode.
So.
Please Help me.
Thanks.

Open Terminal and use this command:
sudo /Developer/Library/uninstall-devtools –mode=all
if your XCode is in different directory, use that path. After that you can delete the rest of the /Developer directory.

From Xcode 4.3, the xcode is available on mac app store. If you download it from mac app store, it will be installed in this folder: /Applications/Xcode.app.
If xcode version is below 4.3, the installation directory can be changed in the installation wizard. The default installation directory is in /Developer folder. And if you choose the default folder when install xcode4.2 and the xcode3.2 is also in that folder. The xcode3.2 will be over written and removed.
If you want to keep both xcode 4.2 and 3.2, you can install them in different folder. For example, I installed xcode 3.2 in folder /xcode3 and xcode 4.2 in folder /xcode4, and I also have a xcode4.3 in folder /Applications/Xcode.app.
The problem is the newest ios simulator is only available in the lastest xcode. For example, the ios5.1 simulator is only available in xcode4.3 . So, maybe we should spend time to get familiar with the lastest xcode.
Hope it will help.

Related

How to upgrade Xcode 3.1.2 to Xcode 4.4.3

New to iOS, Have downloadex xcode 4.3.3 ie: xcode_4.3.3_for_lion.dmg, already the Xcode is present in this machine of the version 3.1.2 [ which i get from spotlight].
Question:
If i want new Xcode 4.3.3, then all i need to double click on xcode_4.3.3_for_lion.dmg, and then click on Xcode.
How can i make Xcode 4.3.3 is a default version, and remove the old 3.1.2 version?.
Before installation of Xcode 4 open terminal
sudo /Developer/Library/uninstall-devtools --mode=all
This will uninstall Xcode 3. Then you can install Xcode 4 as always
Forget about the manual download. Open the Mac App Store, install Xcode from there. When you run it for the first time, it should prompt you to remove the old version.
If you have both the version installed in your mac. Then do one easy thing mentioned in below image
Enjoy Coding :)
I managed to remove and reinstalled somehow.. :(

No iOs templates in XCode 4.2

I installed Lion, then XCode 4.2 from the app store.
As I understand, the iOs SDK should be install with this release.
My problem is, I only get the MacOs templates, no iOs templates.
What am I doing wrong? (It's taking Apple a few weeks now to process my company enrollment and I need to start coding so long).
While installing you need to check that you want to install iOS 5.X SDK, it doesn't install automatically. Re-run the "Install Xcode" application which AppStore downloaded and check to install iOS SDK
Be sure that /Developer/Platforms/iPhoneOS.platform exists. If so, then iOS files were installed.
The iOS templates are contained in /Developer/Platforms/iPhoneOS.platform/Developer/Library/XCode/Templates
If they are there, but are not showing up in XCode, you can try repairing disk permissions with /Applications/Utilities/"Disk Utility".
Otherwise, you may have to rename the /Developer folder and re-install.

Switch between Xcode 4.0.2 and 4.2

I am developing an app with Xcode 4.0.2 and iOS 4.3. Now I would like to upgrade to Xcode 4.2 and iOS 5 so that I could make my app ready when iOS 5 releases in October.
I am told by Apple's website that I should not submit apps that are built by Xcode 4.2 and should do it with the older Xcode 4.0.2, since the Xcode 4.2 and iOS 5 thing is still in beta.
But in the following few weeks I still need to have newer versions of my app submitted to App Store. So my question is,
If I upgrade my Xcode to 4.2, is it possible for me to switch back to Xcode 4.0.2?
If yes, how?
Thanks in advance!
You can simply install two versions of Xcode at the same time. During the installation it will let you choose the destination folder; you can pick another folder. For example, I use /Developer/Xcode (4.2). (However, if you did install 4.2 over 4.0.2, I don't think you would have a problem if you just ran the 4.0.2 installer again to downgrade.)
Taken from About Xcode.pdf (<Xcode>/About\ Xcode.pdf)
Installation
The Xcode installer will create the folder /Developer on the root of your boot partition, and place the Xcode developer tools and SDKs in this folder. If you have a previous version of Xcode you would like to preserve, you can copy the existing installation from /Developer to another folder to prevent having it updated automatically by the installer.
I would be cautious of this note (possible problems from incompatibility of tools???)
NOTE: The Xcode installer also installs system components and UNIX command line tools in a shared location on your Mac. Only one version of these components can exist on a computer at a time, and the last installed version replaces any previously installed set.
I always make sure I have a bootable drive with a decent working copy of xcode ready for releases in case I need to push a quick fix.
You can install 2 XCode in different folders.
Then you can switch back and forth.
Can I have multiple Xcode versions installed?

Can we have both Xcode 3.2.5 and Xcode 4 on the same mac

I am currently using Xcode 3.2.5 for developing my project. But, i was very impressed with Xcode 4 and want to try it out.
Can i have both the versions on my mac and try them out..???
if i install Xcode 4 and remove my previous version, will it effect my current project???
Thankyou
This is possible, but if I'm not mistaken will only work if you download Xcode 4 from the iOS Developer Center. When installing Xcode 4, make sure you install it in a separate directory from the default otherwise it will overwrite 3.2.5.
If you install Xcode 4 from the Mac App Store, you won't have the choice and all prior versions of Xcode will be removed.
yes... install the xcode 4 in a separate directory ...

upgrading Xcode

I am currently working with Xcode 3.1.3 , i wanted to upgrade it to new version of Xcode 4.0.My question is will i be able to run my older applications which were built on Xcode 3.1.3 on the new version of Xcode.
Thanks in advance
Yes you will be able to do so. However PPC support and 10.4 support is dropped on the mac. If you want to play safe, you can install Xcode 4 in a separate location leaving your Xcode 3.1.3 untouched, so you can switch between these two.
The project format of Xcode 3.2 and Xcode 4 is the same.
One option is to install Xcode 4 into another directory. I just installed the latest version yesterday and it offers you this option. Here is a link here about this also. There is also a StackOverflow question here. If everything works as you expect you can delete Xcode 3.1.3. If not, you still have your current version around.