"_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付款,所以我在myproject中添加了一些示例文件。它显示这个错误所以我谷歌它并将此文件添加到构建阶段 - >编译源但它仍然显示此错误。
请帮我找到解决方案。
答案 0 :(得分:0)
ld: symbol(s) not found for architecture x86_64
您正在尝试为模拟器构建此类,并且链接器告诉您该库缺少x86_64(模拟器)的二进制文件。我不熟悉该库,但您很可能错过了专门针对模拟器的框架,或者该库没有模拟器支持。