TARGET_OS_IPHONE and ApplicationTests

前端 未结 4 1355
我寻月下人不归
我寻月下人不归 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条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-01 13:05

    You need to add

    #include 
    

    source: https://opensource.apple.com/source/CarbonHeaders/CarbonHeaders-8A428/TargetConditionals.h.auto.html

提交回复
热议问题