简体   繁体   English

如何使用可可粉盒正确安装Braintree?

[英]How to correctly install Braintree using cocoa pod?

I am trying to install Braintree SDK using cocoapods. 我正在尝试使用cocoapods安装Braintree SDK。 This is what I used to install - pod 'Braintree' 这就是我以前安装pod 'Braintree'

When installing the terminal shows content as below - 安装终端时,显示内容如下-

Installing Braintree (3.1.0)
Generating Pods project
Integrating client project

[!] Please close any current Xcode sessions and use `NewTest.xcworkspace` for this project from now on.
Sending stats
Pod installation complete! There is 1 dependency from the Podfile and 1 total
pod installed.

[!] Can't merge user_target_xcconfig for pod targets: ["Braintree", "Drop-In", "PayPal", "UI", "api"]. Boolean build setting GCC_TREAT_WARNINGS_AS_ERRORS has different values.

[!] Can't merge user_target_xcconfig for pod targets: ["Braintree", "Drop-In", "PayPal", "UI", "api"]. Boolean build setting GCC_TREAT_WARNINGS_AS_ERRORS has different values.

After installation if I do #import <BraintreeCore/BraintreeCore.h> I get a file not found error for the same statement. 安装后,如果执行#import <BraintreeCore/BraintreeCore.h> ,则对于同一条语句,我将得到一个未找到文件错误。

Here is my Podfile- 这是我的Podfile-

# Uncomment this line to define a global platform for your project
# platform :ios, '9.0'

target 'NewTest' do
# Uncomment this line if you're using Swift or would like to use dynamic frameworks
# use_frameworks!

pod 'Braintree'
# Pods for NewTest

end

I also checked pod --version which is showing - 我还检查了pod --version ,它显示-

/Users/username/.rvm/gems/ruby-2.2.5@global/gems/cocoapods-1.0.1/lib/cocoapods/command.rb:140: warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777
1.0.1

看来我的cocoapods没有下载正确的版本。其余配置正确。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM