Xcode 6 - Unknown type name 'NSString' / Expected identifier or '('

后端 未结 5 758
甜味超标
甜味超标 2021-01-04 12:15

When I am running my project in Xcode 6, I am having many weird errors.

Parse Issue - Unknown type name \'NSString\'
Format argument not an NSString
Could no         


        
5条回答
  •  逝去的感伤
    2021-01-04 12:34

    You can get this error if you have a PrefixHeader file that imports Objective-C code and also some plain C files in your project, because the C files try to import the Objective-C.

    To fix, wrap your objective-c imports like this :

    #ifdef __OBJC__
    #import 
    #endif
    

提交回复
热议问题