2016-09-17 117 views
1

运行吊舱安装时,我有一个问题。吊舱安装不安装荚

这是我荚文件看起来像:

platform :ios, '8.0' 

target 'Template1' do 


pod "PinterestSDK", :git => "https://github.com/pinterest/ios-pdk.git" 

end 

但它不会安装荚,一旦我执行吊舱安装,这是它给人的输出。

Analyzing dependencies 
Downloading dependencies 
Generating Pods project 
Integrating client project 

[!] Please close any current Xcode sessions and use `Template1.xcworkspace` for this project from now on. 
Sending stats 
Pod installation complete! There are 0 dependencies from the Podfile and 0 total 
pods installed. 

[!] The Podfile does not contain any dependencies. 

我不确定有什么问题。从你的项目目录

+1

退出Xcode和运行荚再次安装.. –

+0

@ m.k的。我做到了,但结果相同。 – posha

+0

删除“:混帐=>‘https://github.com/pinterest/ios-pdk.git’”这部分,然后再试一次 –

回答

2
  1. 删除 “豆荚” 目录(如果存在)

  2. 在终端,$开-a的Xcode Podfile

  3. 使用此:(Podfile)

    平台:ios,'8.0'

    target'Template1'do

    荚“PinterestSDK”

  4. 在终端,$ CD YOUR_PROJECT_PATH

  5. 吊舱安装

+0

相同的结果,不知道什么是错。 – posha

+0

嗨,我找到了这个问题。谢谢。这是一条路径问题。 – posha

+0

请用剔号标出我的答案,如果它对你有帮助...其他人可以从中受益.. – KSR