There was a method for Xcode 4.x:
#define __AVAILABILITY_TOO_NEW __attribute__((deprecated(\"TOO NEW!\"))) __attribute__((weak_import))
#if __IPHONE_OS_VERS
Use the method described here: https://stackoverflow.com/a/8919108/480467
In addition, to get this to work under XCode 5 you need to also redefine the NS_AVAILABLE and NS_DEPRECATED macros because CFAvailability.h distinguishes between compilers that support the attribute_availability_with_message feature.
See my response here: https://stackoverflow.com/a/19704587/480467