SDKs and Deployment Targets

June 23, 2009

Xcode has two build settings that are very important when supporting multiple versions of the OS (whether we’re talking about the Mac or the iPhone, it’s all the same to Xcode) with a single application binary. These settings are SDKROOT (a.k.a Base SDK) and MACOSX_DEPLOYMENT_TARGET[1] (a.k.a. Mac OS X Deployment Target). Base SDK Most people […]


4-Way Fat Binaries, 10.4 through 10.5

June 2, 2009
Tags: ,

I’ve seen this question come up several times in the past week: “How do I build a single Cocoa application that runs on both 10.4 and 10.5, and runs 64-bit where possible.” Easy. Copy and paste the following settings into your project or target settings as appropriate: SDKROOT = macosx10.5 MACOSX_DEPLOYMENT_TARGET = 10.5 MACOSX_DEPLOYMENT_TARGET[arch=ppc] = […]