Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/110.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios Paypal SDK集成错误_Ios_Objective C_Xcode_Paypal - Fatal编程技术网

Ios Paypal SDK集成错误

Ios Paypal SDK集成错误,ios,objective-c,xcode,paypal,Ios,Objective C,Xcode,Paypal,我正在尝试将Paypal SDK添加到我的应用程序中,但出现4个错误 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

我正在尝试将Paypal SDK添加到我的应用程序中,但出现4个错误

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)
有人能帮我解决这个问题吗?

试试这个:

  • 转到目标->构建设置->链接->其他链接器标志
  • 向其中添加-lc++&-ObjC
这对我来说很有效,可以解决与上面相同的错误

希望这会有所帮助。

转到:

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"