将Stripe和PaymentKit集成到Swift中时,Apple Mach-O链接器出错

时间:2015-08-10 20:27:08

标签: xcode swift cocoapods stripe-payments

我已成功将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)

1 个答案:

答案 0 :(得分:0)

如果您确定所有文件都已正确链接,请尝试使用Command-Shift-K清理您的版本。