Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 872
JoeCortopassi Avatar asked Mar 28 '13 22:03

JoeCortopassi


People also ask

How do I disable arc in Xcode?

You can disable ARC for a specific class using the -fno-objc-arc compiler flag for that class. In Xcode, in the target Build Phases tab, open the Compile Sources group to reveal the source file list. Double-click the file for which you want to set the flag, enter -fno-objc-arc in the pop-up panel, then click Done.


1 Answers

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!

like image 188
9to5ios Avatar answered Sep 20 '22 21:09

9to5ios