Open arekkusu42 opened 5 years ago
Does it make sense to compile against 10.9SDK to deploy on 10.4?
Yes. That is why the SDK and deployment target are two different variables.
Primarily, using a newer SDK than the deployment target has the downside of not generating build warnings if you use API not available in the older OS. This is solved by temporarily building against the old SDK, or simply testing every code path on every OS you can run on.
Secondarily, using a higher SDK may opt-in to new runtime behavior on new OS versions in some frameworks which look at LC_VERSION_MIN_MACOSX. This is a good reason to use a newer SDK.
Using OSX 10.9.5 and starting with Xcode 6.2: