pfl*_*ous 7 git github cocoapods
当我尝试推送时,当前收到以下错误.
git:(swift3) git push --set-upstream origin swift3
remote: Permission to CocoaPods/Specs.git denied to paul301.
fatal: unable to access 'https://github.com/CocoaPods/Specs.git/': The requested URL returned error: 403
Run Code Online (Sandbox Code Playgroud)
当我从.36移动到1.0.1版本时,这一切都开始了
我已经尝试重新安装CocoaPods,删除项目中的所有CocoaPods文件(worksapce,podfile,pod文件夹,podfile.lock)并执行一个新的'pod init',清除CocoaPods缓存和许多其他东西.
它似乎试图将我的提交推向Specs回购.我一直注意到"pod install"一直在改变我的git repot指向specs repo:
我的Podfile:
platform :ios, '9.0'
target 'Test' do
use_frameworks!
pod 'Moya', '8.0.0-beta.2'
pod 'iCarousel'
pod 'ObjectMapper', '~> 2.0'
pod 'Alamofire', '~> 4.0'
pod 'FacebookCore'
pod 'FacebookLogin'
end
Run Code Online (Sandbox Code Playgroud)
dou*_*bou 10
我有同样的错误我只是改为可可豆荚1.0.1 ...
基本上你origin已经改变了https://github.com/CocoaPods/Specs.git
你可以检查:
? git:(new_version) git remote -vv
origin https://github.com/CocoaPods/Specs.git (fetch)
origin https://github.com/CocoaPods/Specs.git (push)
Run Code Online (Sandbox Code Playgroud)
您可以通过终端更改此设置或手动修改文件
终奌站:
git remote set-url origin https://github.com/PSEUDO/NAME_OF_YOUR_GIT.git
Run Code Online (Sandbox Code Playgroud)
或者,进入.git\config文件并进行更改
[remote "origin"]
url = https://github.com/PSEUDO/NAME_OF_YOUR_GIT.git
fetch = +refs/heads/*:refs/remotes/origin/*
Run Code Online (Sandbox Code Playgroud)
至
[remote "origin"]
url = https://github.com/PSEUDO/NAME_OF_YOUR_GIT.git
fetch = +refs/heads/*:refs/remotes/origin/*
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1508 次 |
| 最近记录: |