2013-04-02 40 views
1

我正在創建一個iPhone應用程序,它包含SBJson_3.1.1用於登錄目的[我正在使用webservice登錄數據],但是當我運行該項目時,它顯示以下內容錯誤,我不能找到它是什麼原因,我很新的ios開發,所以請指導我。

Undefined symbols for architecture i386:
"_OBJC_CLASS_$_SBJsonParser", referenced from: objc-class-ref in ViewController.o ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation)

+0

你確定你沒有忘記班級的標題嗎? – thxou

+0

我確定那個 – Optimus

+0

一旦檢查SBJsonParser.h這個類不在你的項目中。 – Balu

回答

0

如果你正在構建的SBJson庫,並已經將自己的應用,你將需要添加-ObjC-all_load標誌到鏈接器選項。

相關問題