Can't install XCode 4.0 - 4.1 on MacOSX Lion - xcode

At first I was installed XCode 4.3. Then, I needed to install an older version of XCode, such as 4.1, to be able to test applications on the simulator iOS 4.1. The operating system MacOSX Lion.
At first I just tried to install XCode 4.1 in the folder Developer, like I did before. But as was to begin the installation I got an error message.
Then, I tried to uninstall XCode 4.3 Application of the folder by moving it to the Trash, and clearing. After rebooting, I tried again to install XCode 4.1 and got this problem again.
I tested it on another computer, which also was installed XCode 4.3, and encountered the same problem.
Maybe you know where to XCode 4.3 leaves their roots? I also cleaned the temp files using CleanMyMac.
Thank you.

Related

Xcode 5.1 crashing after installing Xcode6-beta version

The application "Xcode5.1.1" can't be opened.
I use x-code 5.1 to build iOS apps, now when i installed x-code6 beta version to implement app with swift language then xcode 5.1 is not working. It is giving me such error-
I use to resolve problem with Xcode 4.6.3 crashing after installing xcode 6 beta but not found this useful for my case.
I have tried to restart machine but it is giving same error. I googled for it but not got useful stuff. Any help would be appreciated.
Try to select different "Command line tools" in the bottom of Xcode -> Preferences -> Locations.
You can do it in your working Xcode 6.
After trying more I found it useful
Restart your machine then it can work, if not like my case then try below command in your Terminal
sudo mv /System/Library/PrivateFrameworks/MobileDevice.framework{,-saved}
then again restart your machine then it will ask for installing few components of Xcode so allow it, then your Xcode 5.1.1 will work fine.

Uninstalling XCode can interrupt MacPorts?

I have Xcode 4.5 Developer Preview 1 and now I want to download Xcode 4.6. Before downloading the latest Xcode, I want to clean uninstall the old one. Not sure yet how to do that. But I'm afraid it will interrupt the MacPorts functions. MacPorts needs Xcode Command Line Tools. So is it possible to completely uninstall the old one first and then download the latest version later? I also want to upgrade Xcode 4.5 DP1 to Xcode 4.6 if possible. I installed Xcode 4.5 DP1 from DMG file. I'll install Xcode 4.6 from App Store.
You should upgrade XCode via App Store.
You should be able to upgrade Xcode and the command line tools without problems. MacPorts might not work while you don't have a version of Xcode (and the command line tools) installed, but will start working again after the update.

Uninstall Previous XCode and Install XCode 4.5

Is it safe to completely uninstall previous version of XCode and Install the XCode 4.5? because...
I just uninstalled XCode 4.2, and it mostly removed all the files in the Developer Folder, now I installed the 4.5, but it scares me since there is nothing in the Developer Folder.
Would XCode still be working even if that's the case? Thanks
Xcode 4.4+ was designed to be installed via the App Store and now stores everything in the Xcode.app bundle in your /Applications directory.
Make sure you use xcode-select to select the new path for your Xcode installation, and you install the command line tools from within Xcode 4.5.
From the Xcode 4.5 release notes:
Starting in Xcode 4.3, the Xcode.app file package contains all the Xcode developer tools. The man pages for the command-line tools Xcode uses are also placed in this package.
yes It's totally safe to completely uninstall the previous Xcode and install new Xcode4.5. I have done it and all works fine for me.
Just have to install the command line tools after installing the Xcode4.5 from it's preference just as show in below image :)

Uninstall Xcode 4.2.1 after installing 4.3.1

I begrudgingly updated to Lion from snow leopard. I then updated XCode to 4.3.1 which as part of the update uninstalled 4.2 from snow leopard. I then realized that one of my other dev tools does not work with 4.3.1 at all, so I installed 4.2.1 along side it in the hopes of fixing things. It didn't. How do I remove 4.2.1 so I'm just left with 4.3.1?
I tried deleting 4.3.1 and re-installing hoping it would detect 4.2.1 and remove it like it did when I first upgraded but no dice.
Searching the web shows I need to run uninstall-devtools however I can't find it anywhere, /Developer doesn't exist...
Trying to re-install 4.2.1 in the hopes there was an uninstaller buried in there says "Xcode install assistant can't be installed because xcode is already installed" (it didn't say this the first time obviously) so I can't re-install without 4.3.1 in place in the hopes of getting a /Developer folder...
There appears to be no uninstall-devtools burried in 4.3.1 (and I have command line tools installed as well).
I can't find 4.2.1, maybe it didn't install (I forgot to check disc capacities before/after) but then why can't I try to install it again without any xcode installed?
Install Xcode 4.2.1 again and then uninstall it:
sudo /Developer/Library/uninstall-devtools --mode=all
It turns out that 4.2.1's installer actually installs an Xcode installer into your applications folder, which in turn actually installs Xcode. The solution is find the installed installer (makes so much sense...) and install Xcode an things behave as expected.
The versions of Xcode that support installation into /Applications instead of /Developer in theory support being removed just via dragging to the trash.
In practice, I'm not sure I trust the process, and I wish there was still a more robust cleanup script.
Search "Xcode 4.2" in spotlight or in finder it will find you the app then move it to trash .But dont forget to check version.

Going back to XCode 4.1 after installing XCode 4.2 beta 7

I've installed XCode 4.2 beta but I realize I can't deploy applications on my iOS 3.1.3 device. The previous XCode 4.1 was able to, but it seems I can't install it back.
What I've tried so far:
install XCode 4.1 directly on top of 4.2. XCode 4.2 persisted
delete the Developer folder, install XCode 4.1. Nothing happened, altho the installation went thru
What am I missing ?
I had the same problem and had to run this in Terminal:
sudo /Library/uninstall-devtools --mode=all
This will remove your Development folder and the other bits around your system, so that you can install Xcode from scratch.
I just went through this. "Installing" XCode 4.1 on top of the 4.2 beta doesn't actually do anything other than creating a 4GB "Install Xcode" file in /Applications. Running THAT shows a prompt that the newer version of XCode will be moved to /Developer-4.2 and the old version will be installed in /Developer.
I found the process confusing because I didn't realize right away that I was supposed to run /Applications/Install Xcode.
try to install it in the other directory ie. Developer/Xcode_old/ but then you have to run proper application(from the correct path).
I have currently both versions installed, so that's definitely can be done.
The problem I had was that I downloaded the 4.1 installer from Apple, but the 4.1 installer doesn't actually install XCode 4.1, it installs an installer for XCode 4.1 called "Install XCode"--BUT "Install XCode" already existed for the 4.2 install and it would not apparently overwrite it.
I renamed "Install XCode" to "Install XCode 4.2", reran the XCode 4.1 "installer" which installed a new "Install XCode", this time for 4.1.
(Who came up with this installer for an installer madness?)
I'm just ran the installer for XCode 4.1 (after mv'ing /Developer to /XCode-4.2) and it seems to have worked.

Resources