2017-10-16 59 views
0

我是新來的ios開發。出於某種原因,我需要爲我的Cordova應用程序手動設置podfile。在我的podfile中有GoogleCloudMessagingGGLInstanceID,現在我想安裝一個brightcove視頻播放器庫,源碼是https://github.com/brightcove/BrightcoveSpecs.git。但是,當我在podfile的頂部添加source時,似乎cocoapods也嘗試從該來源安裝GoogleCloudMessaging如何在podfile中使用源代碼?

我podfile:

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 

錯誤:

Analyzing dependencies 
[!] Unable to find a specification for `GoogleCloudMessaging` 

回答

0

試圖通過賦予這樣的:

pod "Brightcove-Player-FreeWheel", :git => 'https://github.com/brightcove/BrightcoveSpecs.git' 
0

您需要包括官方的CocoaPods來源: https://github.com/CocoaPods/Specs.git

Docs

The official CocoaPods source is implicit. Once you specify another source, then it will need to be included.

所以,你的文件應該像這樣工作,我相信:

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 
相關問題