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
Does JSONKit support ARC, or is there a fork that supports ARC?
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
Did you check for memory leaks using Instruments? The JSONKit developer himself said there's no guarantee it works in an ARC environment. The problems probably are the boundaries from ARC to non-ARC. –
Charyl
Didn't found any issues so far and i've been using it for a while. With that said, doesn't mean that there aren't any. I just haven't found any. –
Steak
Worksforme too. I wonder how much @johnezang hates the fact that lazy ARC-loving devs are happily using his ARC-free and GC-free library. He might not care, but he also might introduce a feature upgrade which will absolutely not work with ARC :) –
Product
This was very helpful for using JsonKit and also other librabry that did not use ARC. Thanks. –
Ulster
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.
Sure it may work but the question is, will it work without memory leaks? Did you check with Instruments? –
Charyl
I've not noticed any memory leaks. –
Kirchner
I added the flag, doesnt work for me..! Build Fails wen i try to run it on device..! –
Chastise
© 2022 - 2024 — McMap. All rights reserved.