我已经成功地将 Stripe 和 Payment Kit 安装到我的 Swift Xcode 6.4 项目中。但是,每当我使用与 Stripe 有关的代码构建项目时,我都会收到以下 Apple Mach-O 链接器错误。
错误:
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_Stripe", referenced from:
__TMaCSo6Stripe in AppDelegate.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
最佳答案
如果您确定所有文件都已正确链接,请尝试使用 Command-Shift-K 清理您的构建。
关于xcode - 将 Stripe 和 PaymentKit 集成到 Swift 时出现 Apple Mach-O 链接器错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31928517/