Xcode 4.3 installation error - xcode

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.

Related

Xcode version in App Store and in Xcode do not match

I am having a strange issue. I need access to Xcode 10 to test my app. So I downloaded and installed the latest version of Xcode from the App Store to my Mac. I have confirmed this in the App Store:
See in the top left in the above image, version 10.1 of Xcode is installed.
But to my frustration when I open Xcode it still is version 9, as shown in this screen shot:
See just below the Xcode logo it says version 9.4.1
What is going on? I tried restarting my computer again but the Xcode version is still 9.4 when i open xcode. Is there somewhere I can choose to use version 10 of Xcode?
You might have possibly installed multiple xCode applications in your system.
Option 1:
Select Finder -> Applications
Check if there are multiple xCode applications.
Option 2:
Go to your project folder.
Right click . xcodeproj or .xcworkspace file -> Open With
This will show all the xCode applications installed in system.

How to convert an older XCode project

I originally created my XCode project with version 3.2.6 and it's moved through 4.x to 5.0. I only just realised that XCode 3.2.6 was still my default XCode and that new projects are .xcode rather than .xcodeproj.
Is there an easy way to update my project - or will XCode have done this and simply kept the old name?
Open the Xcode project by Right click the .xcode file and click the open with option and choose the latest Xcode application.

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.

Moving previous documentation sets and ios SDKs into XCode 4.5

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.

MonoTouch application build

I have managed to install the trial version of MonoTouch as I am interested in buying a license but I want to try the product first. The problem that I am having is this:
I have installed MonoTouch and MonoDevelop
I have downloaded Xcode which has the iphone sdk's bundled in.
When I open monodevelop and create a new iPhone application or project, it creates it and opens it in monodevelop. Awesome. when I try to compile and run in the simulator, I get an error stating "The iphone sdk is not installed."
Now, it could be due to the fact that the xcode I downloaded from the apple developer site is an app file ie no installation is required, you extract the dmg file and then Xcode runs straight from there and you can copy it from the dmg straight to your drive and run it from there. is there any specific place where I should put that file for monotouch to find it? how can I solve this?
Another problem, upon opening the xib file in my project, it does not open interface builder in monodevelop, it opens the files source code. hopefully by solving the xcode issue it will take care of this as well?
Using a Macbook Pro OSX 10.7.3
You're right, the problem is that MonoDevelop can't find Xcode.
The easiest way is to install Xcode from the AppStore. In this case MonoDevelop will detect the location automatically.
You can also tell MonoDevelop where the SDK is in MonoDevelop's preferences (remember to restart MonoDevelop):
Or you can copy Xcode.app into your Applications directory, and MonoDevelop will find it automatically (if you have the latest MonoDevelop version and Xcode 4.3).
Have you tried running XCode and checked that it is installed? Might seem like a silly question, but when you download XCode from appstore you only download the installation program, which you in turn need to run to actually install XCode.
I have solved the problem. I downloaded another version of xcode which physically installed it on the machine now everything works beautifully.

Resources