Get Xcode 5 to warn about new API calls

后端 未结 4 1195
北恋
北恋 2020-12-11 12:47

There was a method for Xcode 4.x:

#define __AVAILABILITY_TOO_NEW __attribute__((deprecated(\"TOO NEW!\"))) __attribute__((weak_import))

#if __IPHONE_OS_VERS         


        
4条回答
  •  青春惊慌失措
    2020-12-11 13:27

    In Xcode 5, you should be able to use/adapt the code from my answer to https://stackoverflow.com/a/19567669/473067. It could be incompatible with the use of modules, though, I haven't checked.

    I posted a summary here: http://iphone.m20.nl/wp/2013/10/xcode-5-and-flagging-weak-linked-unavailable-symbols-from-a-newer-sdk/

提交回复
热议问题