upgrading Xcode - iphone

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.

Related

Installing new and old versions of Xcode

So I saw this post: http://mobiledevelopertips.com/xcode/download-and-install-older-versions-of-xcode-xcode-previous-releases.html
(new location: at iosdevelopertips.com)
about downloading older versions of Xcode. Up to now, I have always just downloaded the newest version of Xcode from the App Store and let it do its thing. Recently on one computer that has Xcode 4.5 installed on it, I noticed that if I create a new project, I only get the iOS 6.0 simulators, not the 5.0 or 5.1.
My first question is, do I need older versions of Xcode to build apps for older OS (e.g. iOS 4, iOS 5.0, 5.1, etc)?
If so, what's the best way of installing these older versions of Xcode. I see that they have the command line tools to download as well. I'm not sure how all that stuff works.
What's the best way to update to the latest Xcode but keeping the old Xcode around? On a different machine that had Xcode 4.4.1 installed, I thought I could download Xcode 4.5 from the ADC website and install it. I downloaded it, double-clicked on the .dmg, then double-clicked on the Xcode file. This then installed Xcode 4.5 without asking me where I wanted it installed so I could keep the older version of Xcode (assuming that I need it as stated in my 1st question).
Thanks!
To answer your questions:
1) Yes. I renname Xcode to add the version number (i.e. Xcode_441.app)
2) I keep an archive of all versions of Xcode that I have downloaded so they are available after Apple pulls them from their download site.
3) Renaming them works for me, and I usually grab the direct download, when available, instead of getting it from the MAS. Try renaming Xcode before doing an install.
You are welcome.
It's possible to have multiple XCode installations by customizing the install path. Also note that the new 4.x install model is app bundles under Applications which are self contained so it's possible to just rename the old before installing the new XCode. You can also download the newest (4.5) from the developer site.
You can also add the old simulators by going to XCode preferences in 4.5.
Look under XCode, preferences, downloads. XCode 4.5 offers the 5.0 and 5.1 simulators for download. The same place that you download the command line tools.
For example, I added the 5.0 Simulator to my XCode 4.5 installation to go along with the 6.0 Simulator:
I noticed that if I create a new project, I only get the iOS 6.0 simulators, not the 5.0 or 5.1.
Choose your project target and in Summary tab, set the lowest Deployment Target for your app (I think the default value is 6.0 in Xcode 4.5).
My first question is, do I need older versions of Xcode to build apps for older OS (e.g. iOS 4, iOS 5.0, 5.1, etc)?
If you've updated from old version of Xcode, you can use the old SDK & simulator in new version.
If so, what's the best way of installing these older versions of Xcode. I see that they have the command line tools to download as well. I'm not sure how all that stuff works.
Actually, different versions of Xcode can stay happily with each other. It is a App Bundle right now.
third question
Just drag the new version of Xcode to Application folder. That's done. :)

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 ...

How to fix "Apple is not currently accepting applications built with this version of the SDK." error for distributing an iOS SDK 4.2 app

This is very similar to a couple of other questions on stackoverflow, but they all seem to be from last year and referring to lower version numbers.
I have:
xcode version 3.2.5
A distribution build with Base SDK = Latest iOS (currently set to iOS 4.2), iOS Deployment Target = iOS 3.2
I've tried the following without much luck:
Deployed to a device (not the simulator)
Setting the iOS Deployment target to 3.0, 3.2, 4.0, 4.1 and 4.2
Cleaned my xcode cache
Deployed through Application Loader and Organizer
Did a clean build
Reinstalled xcode <-- turns out this was the problem - need to check that it's the final version (ie, xcode_3.2.5_and_ios_sdk_4.2_final.dmg) and not the beta version
Tried finding a version of the SDK < 4.2 to install, but apple seems to remove all old versions from their developer site
I'm sure iOS 4.2 should be out of beta now, so I don't think this is the issue either.
Any other ideas? Is there any way of getting more information about the versions of the SDK that apple want?
Very frustrating indeed!
I had this problem yesterday and solved it by redownloading XCode from the developer center and reinstalling it. For some reason, the dmg file on my disk was from 19th of November (no, it was not a beta), and the release date of the SDK is 22nd on the iOS Dev center. Check if your local copy was downloaded before that. It just automagically worked after a reinstall. I built the binaries against SDK 4.2 and set the deployment target to 3.1 if that helps.
I am not sure at the moment, did apple rerelease SDK 4.2 with XCode 3.2.5 at some point without changing the version? Anyway, hope that helps, it worked for me.

install iphone sdks side by side

Im trying to get my xCode to contain all iPhone sdk's from 4 back to 2. But when I download the DMG files, it seems to only allow me to have an xCode with SDK versions 2 - 3.1 OR 3.2 - 4, not all together.
How can I install the SDK's into one xCode so I can build for all different OS versions?
Thanks
EDIT::
Ok so I know I can set the base SDK in xcode, but the options I have are only 3.2 or 4.0, I cant seem to install the 3.1 or earlier SDK's how can this be done?
Final Edit::
Ok got it solved, basically you only need to have an older version of xcode installed to get earlier simulators running, otherwise the articles given to me in my answers as well as others were very helpful:
http://www.clarkcox.com/blog/2009/06/23/sdks-and-deployment-targets/
Install xCode 3.2.3 w/ iPhone SDK 4, get "Base SDK missing", can't see other SDKs
How To Make iPhone App compatible with multiple SDK (firmware) versions
http://cocoawithlove.com/2010/07/tips-tricks-for-conditional-ios3-ios32.html (possibly the best one)
Is there any particular reason you need to do this? Are you trying to develop applications that will run on iOS 4.x and older versions (3.x)? You can still develop applications which will run on iOS 3.1.x with the iOS 4.x sdk.
Take a look at the following article: http://www.clarkcox.com/blog/2009/06/23/sdks-and-deployment-targets/
I tried the same thing some time ago, and it seems some minor SDK versions are automatically removed during the install process...
You may tried to copy them before installing the other XCode versions, and re-install them just after.
They are located in /Library/Platforms/iPhoneOS.platform/Developer/SDKs/ and /Library/Platforms/iPhoneSimulator.platform/Developer/SDKs/.
Note that you can also choose to install each XCode version in a separate directory.
You will lose a lot of hard disk space, and you'll have multiple versions of XCode, each one with different SDK versions.