我目前在mercurial repo中有一个cocoapod,我可以在我的podfile中安装以下行而不会出错:
pod 'MyPod', :hg => 'https://hg.example.com/pod/mypod'
但是,我想根据信息seen here为我的Podfile指定一个特定的提交。
具体地,
pod 'Alamofire', :git => 'https://github.com/Alamofire/Alamofire.git', :commit => '0f506b1c45'
但是,该示例适用于git repo,而不是mercurial repo。
当我添加提交仓库时,如下所示,我收到以下错误消息:
pod 'MyPod', :hg => 'https://hg.example.com/pod/mypod', :commit => 'abcd1234'
分析依赖关系预先下载:
MyPod
来自https://hg.example.com/pod/mypod
,提交abcd1234
[!]安装MyPod无法识别的选项
时出错[:commit]
虽然我知道我也可以标记提交并将我的podfile指向那个,但这样做不是这个场景中的一个选项。
答案 0 :(得分:0)
解决方案是将提交更改为修订。我无法在他们的示例页面上找到它。
pod 'MyPod', :hg => 'https://hg.example.com/pod/mypod', :revision => 'abcd1234'