The answer to this question does not appear to work on xcode 4.5. To summarise it, is there a way for XCode to warn about classes, methods and procedures that are only available a later version than the deployment target?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There is a correct answer inside of the question that you linked too. With some experimentation, I came up with this (from mattjgalloway’s answer):
Then repeat for all the versions that make sense (i.e. 4.3 and above for Xcode 4.5). The
__IPHONE_OS_VERSION_MIN_REQUIREDmacro will check the deployment target.