我使用下面的
下载了最新的paypal IOS SDKhttps://github.com/paypal/PayPal-iOS-SDK
我添加了示例中指定的框架..
Undefined symbols for architecture i386:
"std::terminate()", referenced from:
___clang_call_terminate in libPayPalMobile.a(libCardIO.a-i386-master.o)
"___cxa_begin_catch", referenced from:
___clang_call_terminate in libPayPalMobile.a(libCardIO.a-i386-master.o)
"___gxx_personality_v0", referenced from:
Dwarf Exception Unwind Info (__eh_frame) in libPayPalMobile.a(libCardIO.a-i386-master.o)
Dwarf Exception Unwind Info (__eh_frame) in libPayPalMobile.a(libCardIO.a-i386-master.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
我也试过
转到目标 - >构建设置 - >链接 - >其他链接器标志 添加-lc ++& -ObjC到它
我的项目中有SDWebImage ..
请在我出错的地方建议任何想法..
先谢谢..
答案 0 :(得分:7)
转到yourProjectName然后BuildSetting并将-lc ++ -ObjC放在其他Linker标志上
享受
答案 1 :(得分:3)
转到目标 - >构建设置 - >链接 - >其他链接器标志添加-ObjC -l“PayPalMobile”-l“Pods-PayPal-iOS-SDK”-l“c ++”-framework“AVFoundation”-framework“AudioToolbox”-framework“CoreLocation”-framework“CoreMedia”-framework“ MessageUI“-framework”MobileCoreServices“-framework”SystemConfiguration“
答案 2 :(得分:0)
我会看instructions中的第4步。具体来说,确保通过明确添加或启用自动链接可以找到所有框架。