Reputation: 5150
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?
Upvotes: 2
Views: 3644
Reputation: 5407
In addition to the Warren Burton answer: TARGET_OS_IOS
may be defined not only in your code but also in project settings in XCode in Preprocessor Macros
Upvotes: 0
Reputation: 17381
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
Upvotes: 3