Does JSONKit support ARC, or is there a fork that supports ARC?

放肆的年华 提交于 2019-11-27 10:23:22

问题


According to these comments, JSONKit does not support ARC, and not even running with fobjc-no-arc setting in an ARC environment: https://github.com/johnezang/JSONKit/issues/37


回答1:


You can still use JSONKit in your application with ARC.

I'm using it myself.

Select your project root in XCode 5, under Targets select your application then select the BuildPhases tab. Under Compile Sources double-click JSONKit.m and add the following compiler flags -fno-objc-arc.

Hope it helps

Cheers




回答2:


I use JSONKit in ARC project with the -fno-objc-arc in the JSONKit.m file in the compile Source settings.

And just some of the posts you linked to in your question already say it works.



来源:https://stackoverflow.com/questions/10681597/does-jsonkit-support-arc-or-is-there-a-fork-that-supports-arc

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!