判断模拟器
判断是否是模拟器的常用方法
How can I programmatically determine if my app is running in the iphone simulator?
OC
1 | #if TARGET_OS_SIMULATOR |
Swift
Swift中无法使用Macro,可以用另外一个表达式
what’s wrong with my #if TARGET_OS_SIMULATOR code for Realm path definition?
1 | #if arch(i386) || arch(x86_64) |