iOS CocoaPods导入JSONKit报错Assignment to Objective-C's isa is deprecated in favor of object_setClass...

问题:CocoaPods导入JSONKit报错assignment to objective-c's isa is deprecated in favor of object_setClass()
如图,类似于这种报错

51603782116_.pic_hd.jpg

原因:64位不支持对isa的直接赋值
解决:因为使用CocoaPods导入的JSONKit,所以要点击pod文件的Target(这里很重要,要不然搜不到JSONKit
如图所示,按照箭头提示把Direct usage of 'isa'设置成NO就可以了

image.png

注意:如果是手动导入的JSONKit则第一步直接点击xcode文件设置,其他的和这里一样

你可能感兴趣的:(iOS CocoaPods导入JSONKit报错Assignment to Objective-C's isa is deprecated in favor of object_setClass...)