Run pod update (Tried on a number of iOS projects)
I expected that the relevant pods would be updated (which it appears they were)
It appears the relevant pods were updated to the latest version. But I'm receiving this error message:
[!] CocoaPods was not able to update the master
repo. If this is an unexpected issue and persists you can inspect it running pod repo update --verbose
When I run the update in verbose mode here is what I see:
Updating spec repo master
$ /usr/bin/git pull --ff-only
From https://github.com/CocoaPods/Specs
9ceea22..9a5b5cd master -> origin/master
error: The following untracked working tree files would be overwritten by merge:
Specs/ModelMapper/1.0.4/ModelMapper.podspec.json
Specs/POPOrientationNavigationVC/0.1.22/POPOrientationNavigationVC.podspec.json
Specs/SwiftSockets/0.22.2/SwiftSockets.podspec.json
Specs/eeGeo/1.0.471/eeGeo.podspec.json
Please move or remove them before you can merge.
Aborting
Updating c407c5c..9a5b5cd
platform :ios, '8.0'
use_frameworks!
target 'Alarmly' do
pod 'Fabric'
pod 'Crashlytics'
pod 'Flurry-iOS-SDK', '~> 7.2'
pod 'RealmSwift', '~> 0.96'
pod 'FBSDKCoreKit', '~> 4.7'
pod 'FBSDKLoginKit', '~> 4.7'
pod 'FBSDKShareKit', '~> 4.7'
pod 'TwitterKit'
pod 'TwitterCore'
pod 'SwiftValidator', '~> 3.0'
pod 'SwiftValidators', '~> 2.0'
pod 'Eureka', '~> 1.2'
pod 'MGSwipeTableCell', '~> 1.5'
pod 'SCLAlertView', '~> 0.4'
pod 'SwiftyJSON', '~> 2.3'
pod 'TestFairy', '~> 1.5'
end
target 'AlarmlyTests' do
end
target 'AlarmlyUITests' do
end
Looks like your specs repo was edited at some point, and now git can't update it.
I'd recommend deleting and re-creating your Specs repo: pod repo remove master
and running pod setup
- then ideally also following this tweet's advice
Thanks so much!
Thanks!! Fixed the same issue for me as well.
Thanks!
Unable get it work. After like 15 minutes of patience it fails with an error as below.
Mac-Dev:iOSPlayGround mac$ pod setup
Setting up CocoaPods master repo
[!] /usr/bin/git clone https://github.com/CocoaPods/Specs.git master
Cloning into 'master'...
error: RPC failed; curl 56 SSLRead() return error -36
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
most likely some server side problem :-1:
@LinkedHK I've got the same problem. Were you able to resolve it?
this worked for me: go into your ~/.cocoapods/repos/master
directory, and do a git reset --hard
, then remove any untracked files shown by git status
.
In my case it ended up being a problem with a Cocoa Pod for Realm. I resolved it with this
For me, turns out when i cd ~/.cocoapods/repos/master
, it wasn't a git repository! the .git
file had been removed ;(
So i found my terminal session was actually not able to clone into https://github.com/CocoaPods/Specs.git/ b/c i ran:
git clone https://github.com/CocoaPods/Specs.git/
and got the same error message:
fatal: unable to access 'https://github.com/CocoaPods/Specs.git/': Could not resolve host: github.com
Not sure if this is related, but it's the first time i used https://paw.cloud - after closing that, and closing my terminal and re-opening, it was fine.
In my case there is nothing in the ~/.cocoapods folder except .git .
solution works for me : go into your ~/.cocoapods/repos/master directory, and do a
git pull
git checkout master
then go to your project path and try to pod install or pod update.
Thanks, worked for me.
@shrimantNikate : Thank you, it helped me update my pods
I was getting the following error when running pod install
:
Setting up CocoaPods master repo
$ /usr/bin/git -C /Users/user/.cocoapods/repos/master fetch origin --progress
fatal: 'origin' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
[!] Unable to add a source with url `https://github.com/CocoaPods/Specs.git` named `master-1`.
You can try adding it manually in `/Users/user/.cocoapods/repos` or via `pod repo add`
And fixed it by adding the git remote manually inside the cocoapods master repo folder:
cd ~/.cocoapods/repos/master
git remote add origin master
thx, it's helpful
master
Why are we typing this command - GitHub, Codemagic
Most helpful comment
Looks like your specs repo was edited at some point, and now git can't update it.
I'd recommend deleting and re-creating your Specs repo:
pod repo remove master
and runningpod setup
- then ideally also following this tweet's advice