Re: How can I obtain the current SDK version specified in the target?
Re: How can I obtain the current SDK version specified in the target?
- Subject: Re: How can I obtain the current SDK version specified in the target?
- From: Geoff Beier <email@hidden>
- Date: Mon, 09 Apr 2012 08:47:45 -0400
On Sun, Apr 8, 2012 at 17:29, Tito Ciuro <email@hidden> wrote:
> One of my targets in Xcode runs a script. The purpose is to build a library
> via lipo that will run in both the device and simulator. Everything is
> working fine except one thing: I cannot seem to find a way to obtain the
> current SDK version specified in the target. If I set the version manually,
Xcode makes quite a bit of information available to your scripts using
environment variables. I haven't found documentation for all of them
yet, but it's easy enough to see them. Just go to your build logs,
click on the run script phase, and expand it. You'll see the
variables.
(Since that's hard to explain, here's a picture:
https://img.skitch.com/20120409-ebgf6tjtbsunbd39m854mrt3dg.png )
You probably want to pluck the version out of SDK_NAME.
HTH,
Geoff
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden