2016-09-17 97 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

相關問題