當(dāng)我們將JSONKit文件導(dǎo)入到工程中,會(huì)提示這樣的錯(cuò)誤
1.JSONKit does not support Objective-C Automatic Reference Counting (ARC) //jsonkit不支持Objective-C自動(dòng)引用計(jì)數(shù)(ARC)(取自百度翻譯)
解決方法:
把JSONKit設(shè)置為不支持arc的模式,在Build Phases ->Compile Sources 雙擊JSONKit.m文件第队,在對(duì)話框中添加-fno-objc-arc參數(shù)即可
2.這時(shí)候會(huì)出現(xiàn)一個(gè)新的錯(cuò)誤,Assignment to Objective-C's isa is deprecated in favor of object_setClass()//分配到Objective-C的ISA是贊成object_setclass()棄用(取自百度翻譯,翻譯不對(duì))
解決方法
Build Settings -> Apple LLVM7.1 -Warnings -Objective C ->Direct usage of 'isa' 將值給為NO就好了