Search code examples
iosxcodecompiler-warningsios9

New warnings in iOS9: Ambiguous expansion of macro 'TARGET_OS_IOS'


After upgrading Xcode to version 7 and using iOS SDK 9 these warnings appear in:

#if TARGET_OS_IOS

Warning:

Ambiguous expansion of macro 'TARGET_OS_IOS'

How do I make it go away?


Solution

  • If you have defined TARGET_OS_IOS in your own code you need to change it to something else (or delete your version)

    Xcode 7 newly defines it for itself along with TARGET_OS_WATCH