Search code examples
iosobjective-cautomatic-ref-countingjsonkit

Can't turn off ARC for JSONkit


Using JSONkit for a project that is ARC enabled, and having issues. I flagged the files appropriately as -fno-objc-arc and tried a build, but it is still throwing errors like ARC is enabled. Any ideas what I could be missing?

For clarity, I flagged the file in Build Phases->Compile Sources->JSONkit.m

EDIT: screen shot of the errors. These are the same errors I got before adding the flag for the file to be ignored by ARC enter image description here


Solution

  • as you mention you have follow these steps already please set compiler flags for JSONkit.m file also -fno-objc-arc

    also

    if its not working then tried:-these steps

    1.you can delete the App directy under ~/Library/Application Support/iPhone Simulator/6.0/Applications and ~/Library/Developer/Xcode/DerivedData

    2.then you can start Xcode ; in the menubar you can find Project -> Clean!