0
我現在有一個善變的回購一cocoapod,我可以在我的podfile以下行安裝沒有錯誤從善變回購安裝cocoapod時出現錯誤:獲取試圖通過提交
pod 'MyPod', :hg => 'https://hg.example.com/pod/mypod'
然而,我想根據信息seen here爲我的Podfile指定一個特定的提交。
具體地說,
pod 'Alamofire', :git => 'https://github.com/Alamofire/Alamofire.git', :commit => '0f506b1c45'
但是,例如爲git倉庫,而不是一個善變回購。
當我添加了承諾回購,如下圖所示,我收到以下錯誤信息:
pod 'MyPod', :hg => 'https://hg.example.com/pod/mypod', :commit => 'abcd1234'
分析依賴預下載:
MyPod
從https://hg.example.com/pod/mypod
,提交abcd1234
[! ]安裝MyPod時出錯無法識別的選項
[:commit]
雖然我知道我也可以標記提交併指向我的podfile,但這樣做不是這種情況下的選項。