• 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 to get warnings for missing methods in older SDKs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to get warnings for missing methods in older SDKs


  • Subject: How to get warnings for missing methods in older SDKs
  • From: Ben Staveley-Taylor <email@hidden>
  • Date: Fri, 25 Mar 2011 09:43:42 +0000

What's the the best way to identify which methods are not available on earlier OS releases now that we are obliged (in Xcode 4) to use the 10.6 SDK?

Up until now (in Xcode 3) I have been using SDKROOT=macosx10.5 with MACOSX_DEPLOYMENT_TARGET=10.5. That does exactly what I want; if I accidentally use a method that is 10.6 only I get a compile time warning, which reminds me to put in some workaround code.

However, with SDKROOT=macosx10.6 + MACOSX_DEPLOYMENT_TARGET=10.5 I get no warnings. Can it be true that the official line is it's just up to me to read the documentation very carefully for every method I use? I've seen others propose copying the 10.5 SDK into Xcode 4, and a response that that is unsupported and generally a bad idea. Do we know of a better "clean" solution yet?

Thanks,

--
Ben Staveley-Taylor
email@hidden



 _______________________________________________
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 to get warnings for missing methods in older SDKs
      • From: Alexander von Below <email@hidden>
    • Re: How to get warnings for missing methods in older SDKs
      • From: Chris Suter <email@hidden>
  • Prev by Date: Re: Why does XCode 4 always open files up to maximum size?
  • Next by Date: Re: How to get warnings for missing methods in older SDKs
  • Previous by thread: Xcode 4 + git (part 4)
  • Next by thread: Re: How to get warnings for missing methods in older SDKs
  • Index(es):
    • Date
    • Thread