Xcode 在模拟器上是否有跳过编译源代码的编译器标志?

Xcode 在模拟器上是否有跳过编译源代码的编译器标志?,xcode,compiler-construction,ios-simulator,conditional,compiler-flags,Xcode,Compiler Construction,Ios Simulator,Conditional,Compiler Flags,正如标题所说。 我知道 #if (TARGET_IPHONE_SIMULATOR) #import "CameraViewController_simulator.h" #else #import "CameraViewController_device.h" #endif …喜欢这个解决方案,但我喜欢只使用编译器的解决方案(如果有的话)。如-fno objc arc标记非弧源

正如标题所说。 我知道

#if (TARGET_IPHONE_SIMULATOR)
    #import "CameraViewController_simulator.h"
#else
    #import "CameraViewController_device.h"
#endif
…喜欢这个解决方案,但我喜欢只使用编译器的解决方案(如果有的话)。如
-fno objc arc
标记非弧源