当我们将JSONKit文件导入到工程中,会提示这样的错误
1.JSONKit does not support Objective-C Automatic Reference Counting (ARC) //jsonkit不支持Objective-C自动引用计数(ARC)(取自百度翻译)
解决方法:
把JSONKit设置为不支持arc的模式,在Build Phases ->Compile Sources 双击JSONKit.m文件,在对话框中添加-fno-objc-arc参数即可
2.这时候会出现一个新的错误,Assignment to Objective-C's isa is deprecated in favor of object_setClass()//分配到Objective-C的ISA是赞成object_setclass()弃用(取自百度翻译,翻译不对)
解决方法
Build Settings -> Apple LLVM7.1 -Warnings -Objective C ->Direct usage of 'isa' 将值给为NO就好了