Install Mac OS X SDK 10.5 on Snow Leopard - xcode

Is there an easy way to install / download the Mac OS X 10.5 SDK on Snow Leopard?
I have Xcode 4.0 installed via the Mac App Store. I can also download it from the developer site if necessary but I don't know if it includes the 10.5 SDK.
I need the 10.5 SDK for building Android. It is a hard requirement stated in the docs. I tried symlinking to the 10.6 SDK but that didn't work.
(Perhaps it would be OK to get the SDK from an older Mac that is actually running 10.5 and has an older version of Xcode installed? Would that work?)

The 10.5 sdk is not available for XCode 4.0. You will need to keep XCode 3.2.6 if you need it.

There is a solution to install the Mac OS X SDK 10.5 on Snow Leopard shown here:
How to add base SDK for 10.5 in xCode 4
Basically, you can run the MacOSX10.5.pkg from an Xcode 3 installer and install the SDK into an Xcode 4 install.

Related

Can you build 10.7 applications with xcode 3?

Can you build Mac SDK 10.7 applications without having Mac SDK 10.7? Such as with an old Xcode?
Or do you need a new one? And what's the earliest 10.7 SDK was included in Xcode?
You can build applications that run on 10.7, but in order to use 10.7 specific API calls you need to build with Xcode on 10.7 or later.
The earliest Xcode that included the 10.7 SDK was Xcode 4.2 for Lion. Note that the Snow Leopard version of Xcode 4.2 does not include the 10.7 SDK.
You can Drag and Drop older SDKs into newer versions of Xcode and usually get them to work, you can't go the other way.
No you can't. In order to build apps for 10.7 you need the 10.7 library, which is only available in Xcode 4

Can I develop apps for Lion on a Snow Leopard machine?

Currently I am developing a Mac OS X app with XCode 3.2.5 on Mac OS X 10.6.8, the target is Release i-386. Will my app run normally on Lion?
Do I need to use XCode 4.0+?
Thanks
Every app built under the 10.6 SDK should, theoretically, work just as well under 10.7.
And you can use Xcode 3.X too, if you want. But yes, I'd recommend using the latest and greatest versions of Xcode (version 4) for development.

Build app so it can run on different versions of OS X

I have an app that needs to be run on MAC OS X 10.5,10.6,10.7
I'm using XCode 4.02 and iOS SDK 4.3. My build settings are 10.6 MAC OS X, and Deployment target is 10.5.
Is this the right way to do it, or I should use the Mac OS X 10.5 SDK? I can't find it, I have only 10.6.
Right now my application runs on 10.5, but not properly.
If you are a serious apple developer, you should upgrade to Lion. You should also be using the latest SDK, OSX 10.7 that comes bundled with the latest version of XCode 4.2.X (It's free from the MAC APP Store). If you need to have your app run on previous versions of OSX, the correct way to do this is to set the "Deployment Target" (found in the build settings) to 10.5.
XCode/SDK updates are just like any other software update, they contain bug fixes and more importantly security patches, so you should ALWAYS be using the latest versions.

Is moving to Lion a prerequisite for moving to XCode 4.1 (from the app store)?

should you only download XCode 4.1 from the app store if you move to Lion?
i.e I am staying on Leopard for a few more weeks, so do I have to stay with XCode 4.0.2 until I move to Lion?
Yes. Xcode 4.1 Requires Lion. This has been well documented, but 4.2 is apparently available for Snow Leopard as well.
Xcode 4.2 is available for both Lion and Snow Leopard, if you download it from the iOS Developer Centre while logged in as a registered developer. The Mac App Store will only upgrade you to Xcode 4.2 if you upgrade to Lion, but you can manually install it on Snow Leopard by manually downloading it as described here, and it runs just fine on Snow Leopard.
Yes moving to Lion is a requirement. 4.1 brings all of the Lion features into the Xcode environment. I would say if you aren't ready to move to Lion yet, then just stick with 4.0.2 unless you need to develop for Lion.
UPDATE: As of Xcode 4.2, it is now for both Lion and Snow Leopard.
Yes, it seems:
This is a pre-release version of Xcode 4.1 for both Mac and iOS development. This release requires Mac OS X Lion and includes iOS SDK 4.2. Continue to use Xcode 3.2.5 on a Snow Leopard partition if you plan to submit Mac or iOS apps to the App Store
Details: http://thetechjournal.com/electronics/computer/software/xcode-4-1-developer-preview-for-mac-os-x-lion-is-available-for-download.xhtml#ixzz1TGiXaC1w
UPDATE: This question was asked in Jul 2011. As of now, Nov 2011, Xcode 4.2 is already released and made available on the Mac App store.

Question iOS SDK 4.0

I am trying to locate IOS SDK 4.0. But I'm unable to find it. I'm currently running v10.5.6 osx and I'm unable to install the xcode iOS 4.2 cause it says I require 10.6.
Will iOS SDK 4.0 work?
Thanks
iOS SDK 4.0+ requires Snow Leopard / Mac OS 10.6+.
What are the system requirements for the iOS SDK?
To develop with iOS SDK and participate in the iOS Deeloper Program you must have an Intel-based Mac running Mac OS X Snow Leopard. Refer to the iOS SDK Read Me document for full details on system requirements. You must be registered as an Apple Developer in order to access the iOS SDK and iOS SDK Read Me document.
Compatibility: Xcode 3.2 requires an Intel-based Mac running Mac OS X Snow Leopard version 10.6.4 or later. Note: some distributions of Xcode do not include the iOS SDKs; you can verify their presence in the Installer’s “Custom Install” pane.
Taken from About Xcode and IOS SDK
No, you cannot install it on anything under 10.6: How to install iphone sdk 4 on Mac OSX 10.5.8

Resources