美文网首页
cocoapods引入JSONKit编译isa报错

cocoapods引入JSONKit编译isa报错

作者: 往事随风已去 | 来源:发表于2019-04-10 18:11 被阅读0次

cocoapods引入JSONKit,编译时因为isa出现下边的报错:

Assignment to Objective-C's isa is deprecated in favor of object_setClass()

编译报错图片

直接将JSONKit引入工程的,可修改 Build Settings中Direct usage of 'isa'解除,

但是使用cocoapods引入的,则需要在Pods中选中JSONKit下,在其Build Settings中修改Direct usage of 'isa'选项为NO才行。

相关文章

网友评论

      本文标题:cocoapods引入JSONKit编译isa报错

      本文链接:https://www.haomeiwen.com/subject/ropoiqtx.html