Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

can't compiler json-framework

Tags:

json

ios

iphone

I'm using json-framework to parse json, but when I compile I get the following errors:

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

etc....

Developer Information:

Version: 4.2 (4D199)
Location: /Developer
Applications:
Xcode: 4.2 (828)
Instruments: 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)

like image 476
user993077 Avatar asked Dec 27 '22 12:12

user993077


1 Answers

Check in your Build Settings/Build Options the compiler: Use the default Apple LLVM compiler 3.0 instead of LLVM GCC 4.2.

like image 184
elim Avatar answered Jan 08 '23 01:01

elim