2012-02-28 133 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