吊舱安装专用吊舱URI :: InvalidURIError - 坏URI(?是不是URI)
问题描述:
我有使用与其他公共豆荚一个私人吊舱上gitlab一个混帐回购协议,下面是我的Podfile吊舱安装专用吊舱URI :: InvalidURIError - 坏URI(?是不是URI)
source '[email protected]:cocoapods/cocoapodsspecs.git'
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '6.0'
target "main-project-target" do
....
end
我有10.10 Yosemite上的2个mac,我在gitlab上克隆我的项目,并进行pod安装以获取库。
第一个的配置低于:
CocoaPods : 0.34.4
Ruby : ruby 2.0.0p481 (2014-05-08 revision 45883) [x86_64-darwin13.3.0]
RubyGems : 2.1.9
Host : Mac OS X 10.10 (14A389)
Xcode : 6.1 (6A1052d)
Git : git version 1.9.3 (Apple Git-50)
Ruby lib dir : /Users/a-user/.rvm/rubies/ruby-2.0.0-p481/lib
Repositories : my-project - [email protected]:cocoapods/cocoapodsspecs.git @4fff1c9692486e603edf643013f1136a762cdcdf
master - https://github.com/CocoaPods/Specs.git @ c9acfa46c81ffa93063a56d342afa7c0de71c345
它可以做吊舱安装没有任何问题,所有包括我的私人舱库被安装好。
我的第二个MAC是一个新的,我不能在安装吊舱,在开始的时候取得成功我认为这是系统默认的Ruby的问题,所以我安装了自制的红宝石,下面是配置:
CocoaPods : 0.34.4
Ruby : ruby 2.0.0p594 (2014-10-27 revision 48167) [x86_64-darwin14.0.0]
RubyGems : 2.4.2
Host : Mac OS X 10.10 (14A389)
Xcode : 6.1 (6A1052d)
Git : git version 2.1.2
Ruby lib dir : /Users/a-user/.rvm/rubies/ruby-2.1.4/lib
Repositories : master - https://github.com/CocoaPods/Specs.git @ 2a7c343fc975097c436c080765b736aefa5e2629
明确可可豆荚没有发现我的私人舱,和错误消息是:
### Error
```
URI::InvalidURIError - bad URI(is not URI?):[email protected]:cocoapods/cocoapodsspecs.git
我也试着安装Ruby 2.0.0获得一致与我的旧的Mac,但我得到了同样的消息。
PS:我可以克隆我的私人git库没有任何问题。
我在GitHub的Cocoapods问题上搜索了很多,例如https://github.com/CocoaPods/Core/issues/82,但没有发现类似于我的情况。
任何帮助表示赞赏。谢谢你在前进
答
我FINT出该解决方案,只需添加私人回购协议荚帮助了:
pod repo add my-repo [email protected]:cocoapods/cocoapodsspecs.git
这真的没有任何关系无效的网址,该错误信息是非常容易引起误解。希望可以帮到