我试图在Xcode(7.1)上安装带有cocoaPods的Card.io(5.2.2)。但是当我运行我的项目时,编译器会向我显示这个错误:
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中的静态库有关,但我无法使其工作。任何人都可以帮助我吗?
答案 0 :(得分:2)
尝试将$(inherited)
添加到“其他链接器标记”构建设置中。