2016-11-24 53 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

没问题,谢谢修复!:) –

相关问题