我无法让 cocoapods 下载正确的提交

I can't get cocoapods to download the correct commit

这是我要下载的提交:

https://github.com/MegaBits/MagicalRecord/commit/c72306f862250fe4db4be343fc98a105cac98c6c

在我的 podfile 中,我已经尝试了所有方法。我什至尝试过在那个之后提交,改变它的 podspec。它根本不会安装该提交。

我的播客文件:

source 'https://github.com/CocoaPods/Specs.git'
pod 'MagicalRecord', :podspec => 'https://raw.githubusercontent.com/MegaBits/MagicalRecord/develop/MagicalRecord.podspec'

我对此完全没有想法。我需要在该文件中放入什么才能下载该项目的提交?

嗯,我想不通为什么这不起作用。

我会在您的 Podfile 中使用以下行:

pod 'MagicalRecord', :git => 'https://github.com/MegaBits/MagicalRecord.git', :commit => '679f74eaa3'

尽管您可以省略 :commit 位并让它跟踪您在分叉中所做的任何更改,包括对 pod 规范的任何进一步更改。

pod 'MagicalRecord', :git => 'https://github.com/MegaBits/MagicalRecord.git', :commit => 'c72306f'