• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
How can I obtain the current SDK version specified in the target?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How can I obtain the current SDK version specified in the target?


  • Subject: How can I obtain the current SDK version specified in the target?
  • From: Tito Ciuro <email@hidden>
  • Date: Sun, 08 Apr 2012 18:29:57 -0300

Hello,

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, it works fine (script shortened for brevity):

# GLOBAL SETTINGS

MY_SDK_VERSION="5.1"

#### BUILD ######

# Build for Device
xcodebuild -target "MyLibrary" -configuration "Release" -sdk iphoneos${MY_SDK_VERSION} 
...
...

Is there a way to obtain the SDK version?

Thanks in advance,

-- Tito
 _______________________________________________
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

  • Follow-Ups:
    • Re: How can I obtain the current SDK version specified in the target?
      • From: David Duncan <email@hidden>
    • Re: How can I obtain the current SDK version specified in the target?
      • From: Geoff Beier <email@hidden>
    • Re: How can I obtain the current SDK version specified in the target?
      • From: Andreas Grosam <email@hidden>
  • Prev by Date: Re: Detecting iOS and Mac OS X when running unit tests
  • Next by Date: Re: Breakpoint when Core Data property if no custom setter
  • Previous by thread: Re: Detecting iOS and Mac OS X when running unit tests
  • Next by thread: Re: How can I obtain the current SDK version specified in the target?
  • Index(es):
    • Date
    • Thread