【问题标题】:How to resolve this Stripe Payment integration Error?如何解决此 Stripe Payment 集成错误?
【发布时间】:2017-08-04 21:14:55
【问题描述】:
"_OBJC_CLASS_$_STPPaymentCardTextField", referenced from:
  objc-class-ref in PaymentViewController.o


"_OBJC_CLASS_$_Stripe", referenced from:
  objc-class-ref in StripeHandlerViewController.o
  objc-class-ref in AppDelegate.o
  objc-class-ref in PaymentViewController.o
 (maybe you meant: _OBJC_CLASS_$_StripeHandlerViewController)


"_OBJC_CLASS_$_STPAPIClient", referenced from:
  objc-class-ref in StripeHandlerViewController.o
  objc-class-ref in PaymentViewController.o
  "_StripeDomain", referenced from:
  -[StripeHandlerViewController createBackendChargeWithToken:completion:] in StripeHandlerViewController.o
  ___71-[StripeHandlerViewController createBackendChargeWithToken:completion:]_block_invoke in StripeHandlerViewController.o
  -[PaymentViewController save:] in PaymentViewController.o
ld: symbol(s) not found for architecture x86_64


clang: error: linker command failed with exit code 1 (use -v to see invocation)

我尝试在我的旧项目中集成 Stripe 支付,所以我在我的项目中添加了一些示例文件。它显示了这个错误,所以我用谷歌搜索它并将这个文件添加到构建阶段 - >编译源,但它仍然显示这个错误。

请帮我找到解决办法。

【问题讨论】:

    标签: ios objective-c stripe-payments


    【解决方案1】:
    ld: symbol(s) not found for architecture x86_64
    

    您正在尝试为模拟器构建它,而链接器告诉您该库缺少 x86_64(模拟器)的二进制文件。我不熟悉该库,但您很可能缺少专门用于模拟器的框架,或者该库没有模拟器支持。

    【讨论】:

      猜你喜欢
      • 2021-03-08
      • 2012-07-02
      • 2021-07-14
      • 1970-01-01
      • 2020-11-29
      • 1970-01-01
      • 2017-12-12
      • 2012-02-14
      • 2015-04-12
      相关资源
      最近更新 更多