简体   繁体   English

在Xcode 5.0中使用JsonKit

[英]Using JsonKit in Xcode 5.0

I using Xcode 5.0 and i want to use jsonKit to parser content, but i can't find where to place : 我使用Xcode 5.0,并且想使用jsonKit解析内容,但是找不到放置位置:

-fno-arc-objc -fno-arc-objc

It will display : 它将显示:

if __has_feature(objc_arc) error JSONKit does not support Objective-C Automatic Reference Counting (ARC) endif 如果__has_feature(objc_arc)错误JSONKit不支持Objective-C自动参考计数(ARC)endif

Well, I did add the JSONKit classes (JSONKit.h & JSONKit.h) but in the .m file, I have a lot of warnings & compil's error's. 好吧,我确实添加了JSONKit类(JSONKit.h和JSONKit.h),但是在.m文件中,我有很多警告和编译错误。 I using refactor to convert to objective-c arc but it seem not OK.. 我使用重构将其转换为Objective-C弧,但似乎不行。

If you want to add the flag to the compiler options you have to go through Project->Build Phases->Compile Sources, and double click on each of the files where you want to put the flag : 如果要将标志添加到编译器选项,则必须通过Project-> Build Phases-> Compile Sources,然后双击要在其中放置标志的每个文件:

在此处输入图片说明 Beware that there is a strange glitch depending on where the settings window is loaded : 注意,根据设置窗口的加载位置,会有一个奇怪的故障:

Unable to add compiler flag in Xcode 5 无法在Xcode 5中添加编译器标志

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM