pflous pflous - 1 year ago 185
Git Question

Permission to CocoaPods/Specs.git denied

Currently getting the following error when I'm trying to do a push.

git:(swift3) git push --set-upstream origin swift3
remote: Permission to CocoaPods/Specs.git denied to paul301.
fatal: unable to access '': The requested URL returned error: 403

This all started when I moved from .36 to version 1.0.1

I've tried reinstalling CocoaPods, removing all the CocoaPods files in the project (worksapce, podfile, pod folder, podfile.lock) and doing a fresh 'pod init', clearing CocoaPods caches and a number of other things.

It seems like its trying to push my commits to the Specs repo. I've been noticing "pod install" has been changing my git repot to point to the specs repo:

enter image description here

My Podfile:

platform :ios, '9.0'

target 'Test' do
pod 'Moya', '8.0.0-beta.2'
pod 'iCarousel'
pod 'ObjectMapper', '~> 2.0'
pod 'Alamofire', '~> 4.0'
pod 'FacebookCore'
pod 'FacebookLogin'


Answer Source

I have the same bug I just change to cocoa pod to 1.0.1...

basically your origin have been changed to

you can check with:

➜  git:(new_version) git remote -vv
origin (fetch)
origin (push)

you can change this either through terminal or modify the file manually


git remote set-url origin

or, go into .git\config file and change

[remote "origin"]
    url =
    fetch = +refs/heads/*:refs/remotes/origin/*


[remote "origin"]
    url =
    fetch = +refs/heads/*:refs/remotes/origin/*
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download