我正在尝试使用Swift将Stripe与Xcode集成 . 我为Stripe安装了podfile并将 #import "Stripe.h"
导入了我的桥接文件 . 除Stripe之外,桥接文件中的所有其他文件都可以正常工作 . 这是我初始化 Stripe.setDefaultPublishableKey("")
时得到的错误:
Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_Stripe", referenced from:
type metadata accessor for ObjectiveC.Stripe in AppDelegate.o
"_OBJC_CLASS_$_STPPaymentCardTextField", referenced from:
objc-class-ref in STPCheckoutView.o
"_OBJC_CLASS_$_STPAPIClient", referenced from:
objc-class-ref in STPCheckoutView.o
"_OBJC_CLASS_$_STPCard", referenced from:
objc-class-ref in STPCheckoutView.o
"_StripeDomain", referenced from:
-[STPCheckoutView createToken:] in STPCheckoutView.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
任何帮助将非常感激 .