• 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
Re: Detecting the installed version of Xcode
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Detecting the installed version of Xcode


  • Subject: Re: Detecting the installed version of Xcode
  • From: Peter Bierman <email@hidden>
  • Date: Fri, 16 Feb 2007 12:58:46 -0800

At 12:22 PM -0800 2/16/07, Goldfarb, Tammy A wrote:

What is the best way to detect the installed version of Xcode?


Generally, the best way to answer questions like that is to get as close to the authoritative answer as possible.

In this case, you want to know the CFBundleShortVersionString in the Info.plist of the Xcode.app which is _probably_ located in /Developer/Applications.

Since apps can move around on Mac OS X, you should ask LaunchServices where to find com.apple.Xcode.

See:
http://developer.apple.com/documentation/Carbon/Reference/LaunchServicesReference/index.html

In particular, LSFindApplicationForInfo() to find Xcode, and then NSBundle or CFBundle APIs to get the CFBundleShortVersionString (marketing version), or CFBundleVersion (build #).


-pmb _______________________________________________ Do not post admin requests to the list. They will be ignored. Installer-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Detecting the installed version of Xcode (From: "Goldfarb, Tammy A" <email@hidden>)

  • Prev by Date: Detecting the installed version of Xcode
  • Next by Date: Re: Detecting the installed version of Xcode
  • Previous by thread: Detecting the installed version of Xcode
  • Next by thread: Re: Detecting the installed version of Xcode
  • Index(es):
    • Date
    • Thread