2013-11-27 132 views
1

我想贝宝SDK添加到我的应用程序,但我得到的4个错误贝宝SDK集成错误

Undefined symbols for architecture i386: 
    "std::terminate()", referenced from: 
    ___clang_call_terminate in libPayPalMobile.a(CardIOGPURenderer.o) 
    "___cxa_begin_catch", referenced from: 
    ___clang_call_terminate in libPayPalMobile.a(CardIOGPURenderer.o) 
    "___gxx_personality_v0", referenced from: 
    Dwarf Exception Unwind Info (__eh_frame) in libPayPalMobile.a(CardIOAnalytics.o) 
    Dwarf Exception Unwind Info (__eh_frame) in libPayPalMobile.a(CardIOGPURenderer.o) 
    Dwarf Exception Unwind Info (__eh_frame) in libPayPalMobile.a(CardIOAnalytics.o) 
    Dwarf Exception Unwind Info (__eh_frame) in libPayPalMobile.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) 

谁能帮助我解决这个问题?

回答

2

试试这个:

  • 转到目标 - >构建设置 - >链接 - >其它链接器标记
  • 添加-lC++ & -ObjC它

这为我解决错误与上述相同。

希望这会有所帮助。

1

转至:

Targets -> Build Settings -> Linking -> Other Linker Flags Add -ObjC -l"PayPalMobile" -l"Pods-PayPal-iOS-SDK" -l"c++" -framework "AVFoundation" -framework "AudioToolbox" -framework "CoreLocation" -framework "CoreMedia" -framework "MessageUI" -framework "MobileCoreServices" -framework "SystemConfiguration"