-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cache unable to find git reference ...
for < private repository >
#2225
Comments
Update: When I remove the ':commit => '816c30ee...' from the Podfile, the pod installs. |
Update update: After performing the above step, I went ahead and added back in the ":commit => ...' and the operations 'install' and 'update' are now working. It is good news, but doesn't explain why the issue occurred in the first place. |
Resolved by deleting the Cache directory and running 'pod install' again. Actual Error message in console: Error
|
It looks like I am still getting this every time. I've included a log output of an attempt to run pod install --verbose after deleting the ~/Library/Caches/CocoaPods and Pods directories from the project directory. The culprit is definitely the :commit => ... part of the Podfile. When I remove this, pod install and update work.
Report
Stack
Podfile# Podfile
platform :ios, '7.0'
workspace 'PPS'
xcodeproj 'MXMerchant/PPS'
target :PPSRetail do
xcodeproj 'MXMerchant/PPS'
pod 'TestFlightSDK'
pod 'EDColor', '~>0.2.0'
pod 'PaymentKit', '~> 1.0.5'
pod 'MagicalRecord/Shorthand', '~>2.2'
pod 'APLKeyboardControls'
pod 'SDWebImage', '~>3.4'
pod 'FormatterKit', '~>1.3.0'
pod 'SWTableViewCell', '~>0.0.8'
pod 'CocoaLumberjack', '~>1.6.2'
pod 'YLProgressBar', '~>3.0.0'
pod 'NSDate-Escort', '~>1.2.0'
pod 'RPFloatingPlaceholders', '~>0.2.3'
pod 'MMDrawerController', '~> 0.5.1'
pod 'MMDrawerController/MMDrawerVisualStates', '~>0.5.1'
pod 'MMProgressHUD', '~>0.2.0'
pod 'KissXML', '~>5.0'
pod 'CardIO', '~>3.4.4'
pod 'MXPOSSDK', :git => '[email protected]:PRIORITYPAYMENTSYSTEMS/MXPOS-SDK.git', :commit => '83e22815bbbbdaab97c2793562f53e4b621a7d02'
pod 'REFormattedNumberField', '~> 1.1'
pod 'YLProgressBar'
end
target :PPSExpress do
xcodeproj 'MXMerchant/PPS'
pod 'TestFlightSDK'
pod 'EDColor', '~>0.2.0'
pod 'PaymentKit', '~> 1.0.5'
pod 'MagicalRecord/Shorthand', '~>2.2'
pod 'APLKeyboardControls'
pod 'SDWebImage', '~>3.4'
pod 'FormatterKit', '~>1.3.0'
pod 'SWTableViewCell', '~>0.0.8'
pod 'CocoaLumberjack', '~>1.6.2'
pod 'YLProgressBar', '~>3.0.0'
pod 'NSDate-Escort', '~>1.2.0'
pod 'RPFloatingPlaceholders', '~>0.2.3'
pod 'MMDrawerController', '~> 0.5.1'
pod 'MMDrawerController/MMDrawerVisualStates', '~>0.5.1'
pod 'MMProgressHUD', '~>0.2.0'
pod 'KissXML', '~>5.0'
pod 'CardIO', '~>3.4.4'
pod 'MXPOSSDK', :git => '[email protected]:PRIORITYPAYMENTSYSTEMS/MXPOS-SDK.git', :commit => '83e22815bbbbdaab97c2793562f53e4b621a7d02'
pod 'REFormattedNumberField', '~> 1.1'
pod 'ECPhoneNumberFormatter', '~> 0.1.1'
end
target :PPSPro do
xcodeproj 'MXMerchant/PPS'
pod 'EDColor', '~>0.2.0'
pod 'CocoaLumberjack', '~>1.6.2'
pod 'FormatterKit', '~>1.3.0'
pod 'SDWebImage', '~>3.4'
pod 'PaymentKit', '~> 1.0.5'
pod 'MagicalRecord/Shorthand', '~>2.2'
pod 'MXPOSSDK', :git => '[email protected]:PRIORITYPAYMENTSYSTEMS/MXPOS-SDK.git', :commit => '83e22815bbbbdaab97c2793562f53e4b621a7d02'
end
target :Printing do
xcodeproj 'Printing/Printing'
# Tests
target :PrintingTests, :exclusive => true do
pod 'Kiwi/XCTest'
end
end
target :Peripherals do
xcodeproj 'Peripherals/Peripherals'
# Tests
target :PeripheralsTests, :exclusive => true do
pod 'Kiwi/XCTest'
end
end
target :Common do
xcodeproj 'Common/Common'
# Tests
target :CommonTests, :exclusive => true do
pod 'Kiwi/XCTest'
end
end Error
――― TEMPLATE END ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― [!] Oh no, an error occurred. Search for existing github issues similar to yours: If none exists, create a ticket, with the template displayed above, on: Don't forget to anonymize any private data! |
This sounds very much like the commit: 83e22815bbbbdaab97c2793562f53e4b621a7d02 doesn't actually exist in this repository. Perhaps someone force pushed and it no longer exists? |
Good idea. This happened with multiple commits though and we double (even tripled) checked the existence of the commits. |
I know everyone hates "me too" posts, but I'd like to confirm that with latest CocoaPods this happens with multiple repositories for me where the commit categorically does exists. rm -fr on the Caches/CocoaPods directory does not resolve it. I'm away from my machine with CocoaPods dev setup, I'll do some deeper investigating when I get back to my office. Works fine with :tag and :branch, it's only :commit that's affected. Also, :commit is affected whether in a Podfile or in a specfile. (eg. MACollectionUtilities.podspec in the main specs repo). |
Ok, so on two machines I see the same issue, on a third machine I see no issue, with either release cocoapods or trunk (via Rainforest). All three using ruby 2.0. So I suspect it's environmental (probably some rogue gem or something). If I figure out how to resolve it I'll report back. |
@aufflick Thanks! |
To all, to debug this issue you can use the the |
Found it, but I'm not sure about the ruby or gem versions involved. In cocoapods-downloader git.rb, it executes rev-list to test if the commit exists. You can clearly see it does, but it refreshes the cache and then fails anyway:
|
Just for your info. I had that problem with ruby 1.9.2 (with rvm). I solved it by removing rvm and using my system ruby which in my case is "ruby 2.0.0p451". |
CocoaPods : 0.33.1
Ruby : ruby 1.9.2p320 (2012-04-20 revision 35421) [x86_64-darwin12.4.0]
RubyGems : 1.8.25
Host : Mac OS X 10.9.3 (13D65)
Xcode : 5.1.1 (5B1008)
Ruby lib dir : /Users/jmedf/.rvm/rubies/ruby-1.9.2-p320/lib
Repositories : master - https://github.com/CocoaPods/Specs.git @ f22207dd2112c022e2327de9f2b4429a19f52c86
Attempted to run 'pod update' as well as 'pod install' in order to get the latest version of a private pod.
CocoaPods should have found and loaded the version of our private pod based on the commit in the Podfile.
I received the error: Cache unable to find git reference
< Commit number >
for< private repository >
. The actual values in the < > were replaced by Commit number and private repository .The text was updated successfully, but these errors were encountered: