There is no TARGET_OS_OSX define for identifying OS X
| Originator: | jake.petroules | ||
| Number: | rdar://22640089 | Date Originated: | 10-Sep-2015 00:21 AM |
| Status: | Duplicate of 20808093 | Resolved: | |
| Product: | OS X SDK | Product Version: | |
| Classification: | Reproducible: |
Currently, one has to use backwards idioms like #if TARGET_OS_MAC && !TARGET_OS_IPHONE in order to detect OS X. Just as a TARGET_OS_IOS was added to identify iOS specifically, separate from its sibling watchOS and tvOS platforms, OS X needs a TARGET_OS_OSX platform so it can be correctly detected without relying on "else assumptions".
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!