Card.io 的 CocoaPods 错误

CocoaPods error with Card.io

我正在尝试在 Xcode (7.1) 上安装 Card.io (5.2.2) 和 cocoaPods。但是当我 运行 我的项目时,编译器向我显示了这个错误:

Undefined symbols for architecture arm64:
  "_OBJC_CLASS_$_CardIOUtilities", referenced from:
      type metadata accessor for __ObjC.CardIOUtilities in CheckoutTableViewController.o
  "_OBJC_CLASS_$_CardIOPaymentViewController", referenced from:
      type metadata accessor for __ObjC.CardIOPaymentViewController in CheckoutTableViewController.o
ld: symbol(s) not found for architecture arm64

我的 Podfile 包含:

# Uncomment this line to define a global platform for your project

platform :ios, '8.1'

# Uncomment this line if you're using Swift

use_frameworks!

target 'MyApp' do
       pod 'Mobile-Buy-SDK'
       pod 'HanekeSwift'
       pod 'Parse'
       pod 'CardIO'
end

我刚刚输入了 pod install,并启动了它创建的 .xcworkspace

我认为它与 card.io 中的静态库有关,但我无法让它工作。谁能帮帮我?

尝试将 $(inherited) 添加到您的 'Other linker flags' 构建设置中。