@import “Unexpected '@' in program”

前端 未结 4 1336
慢半拍i
慢半拍i 2020-12-13 14:26

I updated project to Xcode 5 and enabled modules in build settings. However, I see compiler error Unexpected \'@\' in program when I use @import.

4条回答
  •  北海茫月
    2020-12-13 15:20

    I also found that using following code in pch file:

    #ifdef __cplusplus
    #import 
    #endif
    

    are not compatible with @import.

提交回复
热议问题