天天看点

Expected identifier or '(' Unknown type name 'NSString'

今天导入三方库,报了Expected identifier or ‘(’ 错误和 Unknown type name ‘NSString’

看图

Expected identifier or '(' Unknown type name 'NSString'

全是NSObjCRuntime.h NSZone.h这些系统的头文件

解决方法:

target ->Build Settings ->Complie Sources As 选中Object -C 即可编译成功,也可以试试其他的,

前几天遇到这个错误,再次记录一下