2012-02-28 127 views
0

Undefined symbols for architecture x86_64:TouchJSON上编译(链接错误)

"_objc_unretainedPointer", referenced from:

-[CJSONScanner scanJSONStringConstant:error:] in CJSONScanner.o 

-[CJSONSerializer serializeNumber:error:] in CJSONSerializer.o 

ld: symbol(s) not found for architecture x86_64

clang: error: linker command failed with exit code 1 (use -v to see invocation)

嘿所有失败。试图使用TouchJSON来做一些JSON-Y的东西。我按照阅读我的图书馆,我想,但每次我尝试编译我得到这个错误。我对Xcode不太了解(最近我只是在学习Obj-C),所以我对此一无所知。有任何想法吗?

回答

0

尝试删除“实验”的文件夹(和文件里面,当然)。

README

Be aware that the code in the Experimental subdirectory of Source is just that and may not have been extensively tested and/or have extra dependencies

所以它可能是一个关于额外的依赖(但始终确保您的项目是否已经链接的所有依赖库/框架)问题

+0

无法相信我错过了,谢谢。 – 2012-03-04 18:07:17