无法编译json-framework [英] can't compiler json-framework

查看:59
本文介绍了无法编译json-framework的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用json-framework解析json,但是在编译时出现以下错误:

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

xxx/SBJsonStreamParser.h xxx/SBJsonStreamParser.h:105:错误:"unsafe_unretained"之前应为属性属性 xxx.h:106:错误:预期在'strong'之前的属性属性

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'

等...

开发者信息:

版本:4.2(4D199)
所在位置:/Developer
应用范围:
Xcode:4.2(828)
仪器:4.2(4233)
破折号:3.0.2(336)
SDK:
Mac OS X:
10.6:(10K549)
10.7:(11C63)
iPhone操作系统:
5.0:(9A334)
iPhone模拟器:
4.3:(8H7)
5.0:(9A334)

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)

推荐答案

在Build Settings/Build Options中检查编译器:使用默认的Apple LLVM编译器3.0而不是LLVM GCC 4.2.

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

这篇关于无法编译json-framework的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆