XCode 3.2 version: now I can't compile - iphone

I have this IPhone app underway that was working fine, then I installed OS 10.6 and the shiny new XCode.
It's not compiling, instead coming up with the single error,
"There is no SDK with the name or path 'iphoneos3.0'"
I can't find such a file or folder on my hard drive.
What's broke, and how do I fix it?
Thanks for any assistance.

That's because iphoneos3.0 old and you probably have iphoneos3.1.3 or ios4. You need to go to Project -> Edit Project Settings -> General and change the Base SDK to iphone device 3.0 or 4.0. That fixed it for me.

Make sure your target is setup correctly and you select the right active config.
If you have done that then this might help you out:
You don't say which version of the SDK
you installed. If you installed SDK
version 3.2 for snow leopard, then you
also need to download and install
iPhone OS 3.1 SDK add-on installer for
Xcode 3.2 on Snow Leopard. The version
3.2 provided on the snow leopard CD or download does not include the iPhone
files that you need.
http://forums.oreilly.com/content/Inside-iPhone/5024/Help-With-Samble/

This is a good tutorial for that process: Reconfiguring Xcode projects after iPhone SDK update.

You need to download (or install) the new Snow Leopard specific Xcode. Snow Leopard should also come with Xcode on its installation disc.
Once you have done that, you have to go back to the iPhone download center and download/install the Snow Leopard specific iPhone development toolset for Xcode.

Related

Are Xcode 4 and iOS SDK 4.3 compatible with Snow Leopard?

Currently I am using Xcode 3 and iOS SDK 4.2 on Snow Leopard. I am planning to download and install Xcode 4 and iOS SDK 4.3.
I would like to know if Xcode 4 and iOS SDK 4.3 are compatible with Snow Leopard.
Yes..You will have separate .dmg available for download when you visit iOS developer center X-Code download link.
Please do note that the X-Code 4.2 will have iOS 5 simulator and library only. If you want lower version simulator and library with X-Code just goto X.Code->Prefrences-> Downloads Tab. In downloads tab you'll have two tabs:
1) Components - Here you will have option to download iOS 4.3 simulator(~600 Mb), iOS 4.0-4.1(~670 MB) Device debugging support, iOS 3.0-3.2.2(686.3 MB) Device debugging support.
2) Documentation- Yoy will have option to download iOS 5.0,XCode 4.2 Developer libaray,Mac OSX 10.7 Core Library.
Install the components which ever you need and there you go..
Hope that helps.
There's a specific version of Xcode 4.2 (and likely earlier versions) that can be used on Snow Leopard. That's the version I use on my iMac. Note that you can use 4.2 w/iOS5 SDK and still deploy on older devices (and even download the 4.3 simulator) in case you cannot find Xcode 4.
However you cannot use (download) the one from the AppStore which is Lion-specific. To find the Snow Leopard specific version log into Apple's developers portal and you'll see separate links for SL and Lion.
Yes, it's compatible. Download the XCode 4.2 .dmg from the iOS dev program portal, which includes the iOS 5.0 SDK.
http://developer.apple.com/devcenter/download.action?path=/Developer_Tools/xcode_4.2_with_ios_5_sdk/xcode_4.2_and_ios_5_sdk_for_snow_leopard.dmg
Yes, but only if you have the correct download from Apple.
There are currently 2 separate dmg downloads for the SDK and Xcode installer from the enrolled Developer web site, one for Lion and one for Snow Leopard. The download for Lion is only compatible with Lion. The download for Snow Leopard is only compatible with Snow Leopard. The installer from the App store might be for Lion only, so you may have to sign up for the developer program to get the other installer.
Apple usually removes (or hides) downloads for previous versions of the SDK, so if you didn't download the correct installer dmg (with the SDK for iOS 4.x) for the Mac OS of interest in time, you won't have a compatible installer.

Installing IOS sdk in xcode on lion

I have installed lion and afterwards I installed Xcode. But I have no IOS SDK.
If I look inside the directory: /Developer/SDKs/ I see a sdk for mac os x 10.6 and for
10.7 but no IOS SDK.
When I run my projects or I create a new blank project that uses this sdk I get the following build error:
ibtoold(5057,0x7fff73646960) malloc
auto_zone_set_associative_ref: object should point to a GC block or a global address, otherwise associations will leak. Break on auto_zone_association_error() to debug.
Any Ideas? I've tried re-installing it twice.
I am starting to think there is some bug using lion and Xcode together, I am going to ask this question on the apple developer forum. If I get an answer there, ill post it here.
Hi try doing a full clean un-install.
sudo /Developer/Library/uninstall-devtools --mode=all
Then make sure you download the LION version of XCode 4, I believe it's a free version now.
Good Luck.
The iOS SDK includes Xcode, but Xcode doesn't necessarily includethe iOS SDK. You should download and install the iOS SDK if that's what you want.

Base SDK of Xcode 3.2.2 does not include iOS, where'd it go?

So as of this writing, the newest version of Xcode is 3.2.5 (though the GM seed of Xcode 4 was just released, still not ready to make that jump). I know Apple graciously decided to stop allowing developers the ability to test their apps in simulator for any OS below 4.* with the past few releases of Xcode.
I know I need at least Xcode 3.2.2 to test legacy OS versions of the iPhone in the simulator (3.*).
I install Xcode 3.2.2 in a folder on the same level of the current 3.2.5 version. After the install, I opened my project that has no issues in the newest version of Xcode.
I go to the project settings and check the Base SDK value. Under that tab there is no option for the iPhone OS. All it allows me are Current Mac OS and Mac OS X 10.5 and 10.6.
I check the current Target Tab and see the same issue. No iPhone OS options.
The PDF that comes with the xcode322_2148_developerdvd.dmg file (downloaded from Apple's repository http://connect.apple.com/) talks about the iPhone and iPad platforms, so I know this is a new enough version.
What is it that I am missing?
Edit:
After looking through what was installed on my system with xcode322_2148_developerdvd.dmg, it appears that Apple left out all of the necessary files for the iPhone portion of Xcode. Guess it's off to Google to find an old, complete version of Xcode. Unless someone here has a good virus free location they are willing to suggest :)

Testing multiple iOS versions in Simulator

How can I test multiple iOS versions in the Simulator? I can only seem to test iOS 4.1. I would like to be able to test 3.x versions in the simulator as well.
Cocoa with Love has a good post on how to do this
To allow simulation in 3.1.3, you must
install an old version of Xcode. If
you are a registered iPhone developer,
you can download Xcode 3.1.4 for
Leopard with iPhone SDK 3.1.3 or Xcode
3.1.4 for Snow Leopard with iPhone SDK 3.1.3. Be careful to install these in a different location to your Xcode
3.2.3 with iOS3.2/iOS4 (either select a different hard disk or rename your
existing /Developer directory before
you install).
In the "hardware" menu are options to change the device and the version.
You can install several version of SDK in different path.
To download an older SDK :
http://iphonesdkdev.blogspot.com/2010/04/old-versions-of-iphone-sdk.html

How do I download the SDK for iPhone for Leopard?

I have a Mac with Leopard installed (not Snow Leopard). I'm trying to start playing around with iPhone development, so I want to download XCode and the iPhone SDK. I found a version of XCode on Apple's site which runs on Leopard, but it doesn't have the iPhone SDK bundled with it, and I can't find the iPhone SDK anywhere except bundled with the latest version of XCode (and it won't run on Leopard, just Snow Leopard).
Where can I get a copy of the iPhone SDK for Leopard?
http://chris-fletcher.com/2010/08/28/howto-install-iphone-sdk-2-0-3-1-for-xcode-3-2/
Choose [iPhone SDK 3.1.3 with Xcode 3.1.4 – Leopard].
(I had the same problem.. an old PPC with Mac OS X 10.5 that can't be upgraded to 10.6.2)
This will definitely let you write simple and useful iPhone apps, although I'm not sure about App Store acceptance. Good for 'hello world' and personal stuff, though.
You're out of luck. Current SDK is Snow Leopard only.
Edit: Listen to Eiko. 10.5 is no longer supported.