-1

I am developing an IOS application, using the SBJson library. I don’t use ARC on my project, and previous SBJson releases didn't use it, either.

But now SBJson uses ARC and I have to upgrade to the latest SBJson release. I viewed the SBJson classes and I saw this:

#if !__has_feature(objc_arc)
#error "This source file must be compiled with ARC enabled!"
#endif

How can I upgrade SBJson in my project?

Paul Roub
  • 36,322
  • 27
  • 84
  • 93
hiwordls
  • 781
  • 7
  • 17
  • 35
  • Have you looked into the NSJSONSerialization ? It is built by apple and is super fast and very easy to work with and is available from iOS 5.0 – Trausti Thor Oct 07 '13 at 12:43

2 Answers2

2

You have to use compiler flags to enable and disable ARC for particular files in your project.

Please find more information in official notes Transitioning to ARC Release Notes

Nekto
  • 17,837
  • 1
  • 55
  • 65
1

You have to mark all files with ARC enabled.

Here is a sample how to do that:

http://www.codeography.com/images/arc-compiler-flag.png

Grzegorz Krukowski
  • 18,081
  • 5
  • 50
  • 71