欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  移动技术

速查TARGET_OS关系/Apple xcode 宏定义

程序员文章站 2022-03-30 09:40:03
记法 : 次级等于上级 ......

 

 

 

速查TARGET_OS关系/Apple xcode 宏定义

记法 : 次级等于上级

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/对于(可能)在apple平台上运行的任何cocoa应用程序,target_os_mac将为1。
   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
target_os_embedded        - deprecated: use target_os_iphone and/or
target_os_simulator instead
target_iphone_simulator   - deprecated: same as target_os_simulator
target_os_nano            - deprecated: same as target_os_watch