iOS项目编译 [英] iOS project compilation
问题描述
我正在研究一个访问Web服务的项目.我找到了一个项目
I am working on a project accessing web service. I found a project
http://d1xzuxjlafny7l.cloudfront.net/downloads/PromoTest.zip
以上代码包含JSON库[项目设置编译器= LLVM 4.2]
我试图在我的项目中使用该项目的部分代码.
所以我将JSON库复制到我的项目中[我的项目使用Apple LLVM 3.1]
然后出现一些错误
例如.
The above code include JSON library [project setting compiler = LLVM 4.2]
And I tried to use partial code of that project in my project.
So I copied the JSON library into my project [my project uses Apple LLVM 3.1]
and then some error show up
eg.
SBJsonStreamWriterState **states;
//error:Pointer to non-const type "SBJsonStreamWriterState *" with no explicit ownership
我尝试使用编译器标志-fno-objc-arc,不好. 我想知道这是否是ARC问题吗?如果是这样,那么为什么上面的编译器标志不起作用.
I have tried using compiler flags -fno-objc-arc, no good. I wonder if its a ARC problem? if it is, then why above compiler flag wont work.
推荐答案
因此,我通过删除SBJson库解决了该问题.我发现苹果已经写了一个json库.
So, I solved it by deleting SBJson Library. I found Apple already written a json library.
这篇关于iOS项目编译的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!