【问题标题】:Paypal SDK Integration Error贝宝 SDK 集成错误
【发布时间】:2013-12-12 10:36:59
【问题描述】:

我正在尝试将 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)

谁能帮我解决这个问题?

【问题讨论】:

    标签: ios objective-c xcode paypal


    【解决方案1】:

    试试这个:

    • 转到目标 -> 构建设置 -> 链接 -> 其他链接器标志
    • 在其中添加 -lc++ 和 -ObjC

    这对我有用,可以解决与上述相同的错误。

    希望这会有所帮助。

    【讨论】:

      【解决方案2】:

      转到:

      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"
      

      【讨论】:

        猜你喜欢
        • 2018-06-16
        • 2016-05-27
        • 1970-01-01
        • 1970-01-01
        • 2017-02-12
        • 2012-06-15
        • 2016-07-18
        • 2013-01-22
        • 2012-08-04
        相关资源
        最近更新 更多