Skip to content

Instantly share code, notes, and snippets.

@mhmtkrgz
Last active March 8, 2019 12:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mhmtkrgz/9a3d8601d92708405655a0b40d7b7911 to your computer and use it in GitHub Desktop.
Save mhmtkrgz/9a3d8601d92708405655a0b40d7b7911 to your computer and use it in GitHub Desktop.
TargetConditionals
Macros from TargetConditionals.h.
iOS 9+ only.
TARGET_OS_WIN32 - Generated code will run under 32-bit Windows
TARGET_OS_UNIX - Generated code will run under some Unix (not OSX)
TARGET_OS_MAC - Generated code will run under Mac OS X variant
TARGET_OS_OSX - Generated code will run under OS X devices
TARGET_OS_IPHONE - Generated code for firmware, devices, or simulator
TARGET_OS_IOS - Generated code will run under iOS
TARGET_OS_TV - Generated code will run under Apple TV OS
TARGET_OS_WATCH - Generated code will run under Apple Watch OS
TARGET_OS_BRIDGE - Generated code will run under Bridge devices
TARGET_OS_SIMULATOR - Generated code will run under a simulator
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment