CocoaPods error with Card.io

和自甴很熟 提交于 2019-12-22 10:29:31

问题


I'm trying to install Card.io (5.2.2) with cocoaPods on Xcode (7.1). But when i run my project the compilator shows me this error:

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

My Podfile contains:

# 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

i just typed pod install, and launched the .xcworkspace it created.

I think it has something to do with the static libraries inside card.io, but i can't get this to work. Can anyone help me ?


回答1:


Try adding $(inherited) to your 'Other linker flags' build setting.



来源:https://stackoverflow.com/questions/34134679/cocoapods-error-with-card-io

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!