Answer the question
In order to leave comments, you need to log in
Xcode and iPhone SDK version number in the path - how to live with it right?
I inherited a project that is built with a script containing paths like /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.2.sdk
If the script is moved to a machine with a different version of the iPhone SDK, everything breaks.
I would like to understand how to correctly write such paths using an environment variable, but I can’t find any environment variables, it’s set | grep iPhoneOS
silent like a fish on ice.
It is possible to cut the Gordian Knot by writing a script that looks for installed versions and determines the correct path, but these are crutches. How to do it right?
Answer the question
In order to leave comments, you need to log in
Why not use something like
ls -1d /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS*.sdk
to define the path?
I just don't know how it is in OS X
As far as I understand, in a normal way this is set by the key gcc -miphoneos-version-min
either IPHONEOS_DEPLOYMENT_TARGET
See. man gcc
:)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question