6

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

JoeCortopassi
  • 5,083
  • 7
  • 37
  • 65

2 Answers2

10

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!

9to5ios
  • 5,319
  • 2
  • 37
  • 65
  • 1
    This answer, combined with fully deleting the files and their references, then re-adding and flagging them, did the trick. – JoeCortopassi Apr 02 '13 at 15:19
1

Try cleaning up your derived data. X-Code sometimes does not clean up build warnings/errors. Open the organizer, Projects, select your project, click on delete behind the derived data. Then do a clean build.

Edwin Vermeer
  • 13,017
  • 2
  • 34
  • 58