Cannot json-framework compiler

I use json-framework for parsing json, but when I compile, I get the following errors:

xxx / SBJsonStreamParser.h xxx / SBJsonStreamParser.h: 105: error: expected attribute of property before 'unsafe_unretained' xxx.h: 106: error: expected attribute of property before "strong"

etc....

Developer Information:

Version: 4.2 (4D199)
Location: / Developer
Application:
Xcode: 4.2 (828)
Tools: 4.2 (4233)
Dashcode: 3.0.2 (336)
SDKs:
Mac OS X:
10.6: (10K549)
10.7: (11C63)
iPhone OS:
5.0: (9A334)
IPhone simulator:
4.3: (8H7)
5.0: (9A334)

+4
source share
2 answers

Check the build / build options in the compiler: use the default LLVM compiler 3.0 instead of the LLVM GCC 4.2.

+10
source

Use JSONKit instead, it is faster, has fewer memory leaks, and it may be easier to switch than debugging this problem.

https://github.com/johnezang/JSONKit

0
source

All Articles