Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/111.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Braintree iOS可以';t标记化卡_Ios_Cocoapods_Braintree - Fatal编程技术网

Braintree iOS可以';t标记化卡

Braintree iOS可以';t标记化卡,ios,cocoapods,braintree,Ios,Cocoapods,Braintree,我正在尝试用Braintree iOS标记信用卡。 这是我的代码,就像 不幸的是,我在项目中找不到BTClientCardRequest类,尽管它在中 我的播客文件如下所示: # Uncomment this line to define a global platform for your project # platform :ios, "6.0" source 'https://github.com/CocoaPods/Specs.git' target "myproj" do pod

我正在尝试用Braintree iOS标记信用卡。 这是我的代码,就像

不幸的是,我在项目中找不到BTClientCardRequest类,尽管它在中

我的播客文件如下所示:

# Uncomment this line to define a global platform for your project
# platform :ios, "6.0"

source 'https://github.com/CocoaPods/Specs.git'

target "myproj" do
pod 'Braintree'
pod "Braintree/API"
end

target "myprojTests" do
pod 'Braintree'
pod "Braintree/API"
end
PODS:
  - Braintree (3.3.1):
    - Braintree/API
    - Braintree/Drop-In
    - Braintree/Payments
    - Braintree/PayPal
    - Braintree/UI
    - Braintree/Venmo
  - Braintree/API (3.3.1)
  - Braintree/Drop-In (3.3.1):
    - Braintree/API
    - Braintree/Payments
    - Braintree/PayPal
    - Braintree/UI
    - Braintree/Venmo
  - Braintree/Payments (3.3.1):
    - Braintree/API
    - Braintree/PayPal
    - Braintree/Venmo
  - Braintree/PayPal (3.3.1):
    - Braintree/API
    - Braintree/UI
  - Braintree/UI (3.3.1)
  - Braintree/Venmo (3.3.1):
    - Braintree/API

DEPENDENCIES:
  - Braintree
  - Braintree/API

SPEC CHECKSUMS:
  Braintree: 34538ea612eb8aa2a1187fb273ac80fd496f0628

COCOAPODS: 0.34.1
我的Podfile.lock如下所示:

# Uncomment this line to define a global platform for your project
# platform :ios, "6.0"

source 'https://github.com/CocoaPods/Specs.git'

target "myproj" do
pod 'Braintree'
pod "Braintree/API"
end

target "myprojTests" do
pod 'Braintree'
pod "Braintree/API"
end
PODS:
  - Braintree (3.3.1):
    - Braintree/API
    - Braintree/Drop-In
    - Braintree/Payments
    - Braintree/PayPal
    - Braintree/UI
    - Braintree/Venmo
  - Braintree/API (3.3.1)
  - Braintree/Drop-In (3.3.1):
    - Braintree/API
    - Braintree/Payments
    - Braintree/PayPal
    - Braintree/UI
    - Braintree/Venmo
  - Braintree/Payments (3.3.1):
    - Braintree/API
    - Braintree/PayPal
    - Braintree/Venmo
  - Braintree/PayPal (3.3.1):
    - Braintree/API
    - Braintree/UI
  - Braintree/UI (3.3.1)
  - Braintree/Venmo (3.3.1):
    - Braintree/API

DEPENDENCIES:
  - Braintree
  - Braintree/API

SPEC CHECKSUMS:
  Braintree: 34538ea612eb8aa2a1187fb273ac80fd496f0628

COCOAPODS: 0.34.1

我真的很困惑为什么我的项目工作区中没有这个类以及其他几个类。

基于您的
Podfile.lock
,看起来您已经引入了旧版本的Braintree iOS(
3.3.1
)。在此版本中,
-[Braintree tokenizeCard…]
与您使用的版本有一个不同的版本,该版本基于[Braintree的在线文档][2]

我建议通过在终端中运行以下命令升级到最新版本:

$ cd /path/to/your/project
$ pod update Braintree
有一个问题

或者,如果不想升级,可以将代码更改为:


你也可以发布你的Podfile.lock吗?@Mickeyriss谢谢。发布Podfile.lock有助于确定CocoaPods如何解析Podfile中指定的依赖项!我无法进入Braintreeeui课程,即使我的podfile中有所有文件。谢谢,已经这样做了。好的,但我应该如何用CVV和邮政编码标记卡?此外,另一个问题是我没有看到VTClient类…VTClient在3.0.0中被删除。请升级到最新版本以使用CVV和邮政编码进行标记。