0
使用iOS,我將一個靜態庫作爲框架鏈接到核心項目。我已經將「-all_load -ObjC」添加到核心項目的鏈接器中,以解決視圖控制器問題。將卡IO連接到框架項目(iOS)
這有一個意想不到的結果,即card.io現在沒有正確拉動。我收到以下錯誤。
Undefined symbols for architecture i386: "std::terminate()", referenced from: -[CardIOGPURenderer dealloc] in libflypaylib.a(CardIOGPURenderer.o) "___gxx_personality_v0", referenced from: Dwarf Exception Unwind Info (__eh_frame) in libflypaylib.a(CardIOAnalytics.o) Dwarf Exception Unwind Info (__eh_frame) in libflypaylib.a(CardIOGPURenderer.o) Dwarf Exception Unwind Info (__eh_frame) in libflypaylib.a(CardIOAnalytics.o) Dwarf Exception Unwind Info (__eh_frame) in libflypaylib.a(CardIOGPURenderer.o) ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation)
這是不是有人已經遇到過嗎?
謝謝, 克里斯
請分享您的所有鏈接標誌。 (你用'-lC++'鏈接?) –
嘿。目前使用-all_load,-ObjC。我是否應該像上面那樣添加上述內容?乾杯。 –
值得一試 - 參考https://github.com/card-io/card.io-iOS-SDK/blob/master/README.md#setup第3步 –