Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I can't get cocoapods to download the correct commit

This is the commit I want to download:

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

In my podfile, I've tried everything. I've even tried commits following that one, changing it's podspec. It simply won't install that commit.

My podfile:

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

I'm simply out of ideas for this. What do I need to put in that file to download that commit of that project?

like image 763
Andrew Avatar asked Nov 06 '25 11:11

Andrew


2 Answers

Hm, I can't figure off the top of my head why that's not working.

I'd instead use the following line in your Podfile:

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

Although you could leave off the :commit bit and have it track whatever changes you make in the fork, including any further changes to the pod spec.

like image 200
zwaldowski Avatar answered Nov 08 '25 00:11

zwaldowski


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


Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!