嗨,我一直在努力解決這些錯誤一天。爲iPhone設備建設時鏈接錯誤
我使用TouchJSON框架(http://code.google.com/p/touchcode/)爲iphone.Everything編譯罰款在iPhone模擬器,但是當我嘗試在設備上編譯我得到鏈接錯誤。
未定義符號:
"___switch8", referenced from:
-[NetworkController constructByteMessage:command:] in NetworkController.o
-[CJSONScanner scanJSONObject:error:] in CJSONScanner.o
"___restore_vfp_d8_d15_regs", referenced from:
+[CJSONDataSerializer initialize] in CJSONDataSerializer.o
"___save_vfp_d8_d15_regs", referenced from:
+[CJSONDataSerializer initialize] in CJSONDataSerializer.o
"___switchu8", referenced from:
-[CJSONScanner scanJSONStringConstant:error:] in CJSONScanner.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
NetworkController是一類使用touchJSON方法解析和生成JSON礦。我認爲這是導致大部分鏈接錯誤的touchJSON庫,所以我嘗試了另一個框架json框架,但它仍然導致1錯誤。
我試圖從「調試」更改爲「發佈」,但仍然給出了相同的錯誤。然後我嘗試添加-all_load和-ObjC到鏈接器標誌,但它仍然錯誤。任何幫助或提示將不勝感激。
我試圖使用JSON框架,它給了我一個類似的錯誤。 「___switch32」,引用自: - SBJsonParser.o中的[SBJsonParser scanRestOfString:] – user413385 2010-08-06 20:28:56