2017-06-12 371 views
0

我與科爾多瓦運行cordova build ios和接收這個錯誤架構x86_64的未定義符號:科爾多瓦 -

Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_ESUserInfoResponse", referenced from: l_OBJC_$_CATEGORY_ESUserInfoResponse_$_TMConvenience in TicketmasterSDK(ESUserInfoResponse+TMConvenience.o) "_OBJC_CLASS_$_ESConfig", referenced from: objc-class-ref in TicketmasterSDK(TMExperienceController.o) "_OBJC_CLASS_$_ESProductInfoResponse", referenced from: l_OBJC_$_CATEGORY_ESProductInfoResponse_$_Convenience in TicketmasterSDK(ESProductInfoResponse+Convenience.o) "_OBJC_CLASS_$_ExperienceSDK", referenced from: objc-class-ref in TicketmasterSDK(TMExperienceController.o) "_OBJC_CLASS_$_ESUserInfo", referenced from: objc-class-ref in TicketmasterSDK(TMExperienceController.o) ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

我都遵循這樣一個問題:Undefined symbols for architecture x86_64 on Xcode 6.1 由科爾多瓦和產生的主要的.h和.M我正在使用Swift作爲自定義插件。

它在打開Xcode工作區並在Simulator中運行時生成並運行,但在編譯通過Cordova時出錯。我該如何解決這個問題,以及如何找出科爾多瓦如何爲iOS本地生成?

+0

你解決了嗎?我在這裏面臨同樣的問題。 – Hoon

回答

0

您的一些文件可能從項目中丟失。如果您將自定義代碼添加到AppDelegate.m文件,然後在xCo​​de中打開項目,單擊名爲Navigator的第一個選項卡,然後單擊Classes文件夾,然後選擇「將文件添加到[項目]」。添加您在那裏引用的丟失文件,然後點擊Build。它現在應該工作。它爲我工作!