TARGET_OS_IPHONE and ApplicationTests

前端 未结 4 1293
我寻月下人不归
我寻月下人不归 2021-01-01 12:35

Why doesn\'t this code work when compiling an ApplicationTests unit test bundle?

#if TARGET_OS_IPHONE
   #import 
   #import &         


        
4条回答
  •  -上瘾入骨i
    2021-01-01 13:06

    Both work well

    • #import "TargetConditionals.h"
    • #import
     
        |
        └-#import 
            |
            └- #include  
                    |
                    └- defined TARGET_OS_IPHONE
    

提交回复
热议问题