我是ios开发新手。由于某种原因,我需要为我的 Cordova 应用程序手动设置 podfile。有GoogleCloudMessaging
and GGLInstanceID
在我的podfile中,现在我想安装一个brightcove视频播放器库,来源是https://github.com/brightcove/BrightcoveSpecs.git
。但是当我添加source
在podfile的顶部,似乎cocoapods也尝试安装GoogleCloudMessaging
从那个来源。
我的播客文件:
source 'https://github.com/brightcove/BrightcoveSpecs.git'
use_frameworks!
platform :ios, '8.0'
target 'myapp' do
pod 'Brightcove-Player-Core/dynamic'
pod 'GoogleCloudMessaging'
pod 'GGLInstanceID'
end
Error:
Analyzing dependencies
[!] Unable to find a specification for `GoogleCloudMessaging`
您需要包含官方 CocoaPods 源:https://github.com/CocoaPods/Specs.git
Docs https://guides.cocoapods.org/syntax/podfile.html#source:
官方 CocoaPods 来源是隐含的。一旦指定了另一个来源,就需要将其包含在内。
所以我相信你的文件应该像这样工作:
source 'https://github.com/brightcove/BrightcoveSpecs.git'
source 'https://github.com/CocoaPods/Specs.git'
use_frameworks!
platform :ios, '8.0'
target 'myapp' do
pod 'Brightcove-Player-Core/dynamic'
pod 'GoogleCloudMessaging'
pod 'GGLInstanceID'
end
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)