2016-11-24 45 views
3

無法添加MobileCenter與CocoaPods。 CocoaPods無法找到MobileCenter的規範。CocoaPods - 無法找到`MobileCenter`的規範

Podfile

platform :ios, '8.0' 

target 'VisualStudioMobileCenterDemo' do 
    pod 'MobileCenter' 
end 

錯誤

enter image description here

+0

看來,你已經知道了答案,當你張貼了這個問題。你需要幫助嗎? –

+0

@Hoa不,記錄http://stackoverflow.com/help/self-answer 也創建了標籤'mobile-center' :) –

回答

12

如果您使用的CocoaPods安裝移動中心在您的應用程序和運行與消息的錯誤 - 無法找到MobileCenter規範,在您的終端中運行pod repo update。它會爲你同步最新的podspec文件。然後嘗試pod install,它應該在您的應用程序中安裝Mobile Center模塊。

enter image description here enter image description here

+1

我不確定我瞭解你的建議Podfile如何幫助解決本地問題pod存儲庫不是最新的?這與原始問題有什麼關係? –

+0

@LukasSpieß更新!我的錯。我在想不同的東西:(。 –

+1

沒問題,謝謝修復!:) –

相關問題