Xcode4 with Mac OS X 10.4 SDK - macos

In the latest iteration of Xcode, Xcode 4.0, the 10.4 SDK is no longer included. However, I still need to support 10.4 and PowerPC builds.
I have installed latest Xcode 3.2.6 which still includes 10.4 support. Then I installed Xcode4. Has anyone found a simple way to "cheat" and get Xcode4 to use 3.2.6's SDKs?

Yes, I did :) See here.

XCode 4.0 supports deploying to Mac OS X 10.4 right out of the box, so you shouldn't have to do anything special.
For example, I created a project then selected the project and right there, there is a field called "Deployment Target" where you can select 10.4, 10.5 or 10.6. QED

Related

Moving Carbon project to later Xcode

I'm trying to dig up and work on an old carbon application. Using Xcode 4.3.3, I find that Carbon.r is missing in the project. Even when I target Mac OS 10.6 rather than 10.7, as suggested by Xcode 4.3 can't find Carbon libs on 10.7
I suspect support is there, I just can't see how to "engage" it. or is 4.3.3 too late a version?
What is the latest version of Xcode that has support for Carbon? I'll boot back to an old MacOS if necessary to make this work.
Ken
There are degrees of support for Carbon. I'm using Xcode 4.6.3 under Lion for a partly-Carbon app, but I had to make a couple of adjustments:
I can't edit Carbon nibs with the version of Interface Builder built into Xcode, and the old separate version won't run under Lion. I have Snow Leopard Server running under VMWare Fusion to edit my nibs.
I'm using the OS 10.6 SDK, which does not come with this version of Xcode. So, I opened up the Xcode app package, and in the Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs subfolder, I added a symbolic link to the 10.6 SDK living in a copy of Xcode 3.2.6.

XCode5 says missing SDK 10.7, but I only refer to 10.8

I just installed OS X 10.8 and XCode 5 and I am trying to build a project. I changed the base SDK and Deployment target both to 10.8 and I get this error.
I can't find any reference to 10.7 in my settings, any ideas?
Xcode typically only ships with one SDK for each platform (e.g. Xcode 5 supports iOS 7 & MacOS 10.9 SDK; and at this precise moment it also has MacOS 10.8's SDK built in but probably not for much longer), so in my own settings I typically refer to "Latest SDK" (whichever is shipping with the installed version of Xcode).
And then you can reset "minimum deployment version" in your project settings to be the actual minimum MacOS version (10.5, 10.6, 10.7) you want to run on.
Now, if you do NOT see references to "10.7" in your settings, you may need to actually look at the raw XML of your "project.pbxproj" which resides within your Xcode project. You can look at it in a text editor and see if it's referring to 10.7 anywhere unexpected within it.

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

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.

Pantomime and Mail Frameworks? - Cocoa

Does the Pantomime Framework work for 10.5 or 10.6? Because when I look at the build error I get when compiling it says, it couldn't find the 10.4 sdk. If not, then does anyone know any other framework that works really well with 10.5 or 10.6, with an example?
If you are trying to build on 10.6, be aware that 10.4 SDK is available with the Snow Leopard version of Xcode but it is not installed by default. You can install it from the Xcode installer on the Snow Leopard DVD or the Xcode download.
I'm late to the party, but this is how I got Pantomime to build in XCode 4.3.3 on Lion.
Go to Pantomime's Build Settings and search for sdk. You'll see three properties.
set the Base SDK to whatever platform you're building for ( I set it to 10.7 )
Delete the values for the keys SDKROOT_i386 and SDKROOT_PPC.
Pantomime should build now.

Resources