Cocoapods(私人)无法找到规格 [英] Cocoapods (private) unable to find specification
问题描述
pod repo
时: company-private
- 类型:git(origin)
- URL:ssh://me@myCompany.com//path/git/PrivateCocoapods
- 路径:/Users/Username/.cocoapods/repos/company-private
master
- 类型:git(origin)
- URL:https://github.com/CocoaPods/Specs.git
- 路径:/ Users /用户名/ .cocoapods / repos / master
我输入了〜/。 cocoapods / repos
:
$ ls
公司 - 私人大师
$ cd公司 - 私人
$ ls
规格
$ cd规格:
$ ls
MyProject
$ cd MyProject:
$ ls
0.0.19 0.0.2 0.0.5
$ cd /0.0.5:
$ ls
MyProject.podspec
另一个项目 .podfile
我试图:
pod'MyProject','0.0.5'
在 pod安装
或 pod更新
后收到:
$ pod install
分析依赖关系
[!]无法找到MyProject的规范(= 0.0.5)`
有人知道为什么它不起作用吗???
---编辑---
只需输入 pod install
即可在任何计算机上重现此功能。它以前没有像这样工作。我用 pod repo push company-private MyProject.podspec
推送到服务器。它在一周前工作。今天我以同样的方式推出了新版本,但使用 - allow-warnings
标志。当我试图碰到版本 0.0.19
时,它还没有工作。我克隆了回购协议,并在其中添加了Spec文件夹(因此您现在可以在 ls
中看到它),但它仍然无法正常工作。
- edit2 -
详细输出:
$ pod install --verbose
准备
分析依赖关系
更新规范库
$ / usr / local / bin / git rev-parse> / dev / null 2>& 1
$ / usr / local / bin / git rev-parse> / dev / null 2>& 1
更新spec repo` master`
$ / usr / local / bin / git pull - 仅限
从https://github.com/CocoaPods/Specs
4715d39..f21e61b master - >原产地/主产地
更新4715d39..f21e61b
快进
规格/ ISO8601-re2c / 0.3.1 / ISO8601-re2c.podspec.json | 24 ++++++
规格/ Mobily / 2.0.77 / Mobily.podspec.json | 91 ++++++++++++++++++++++
规格/ NJISO8601 / 0.2.2 / NJISO8601.podspec.json | 22 ++++++
3个文件已更改,137个插入(+)
创建模式100644规格/ ISO8601-re2c / 0.3.1 / ISO8601-re2c.podspec.json
创建模式100644规格/ Mobily / 2.0.77 / Mobily.podspec.json
创建模式100644规格/ NJISO8601 / 0.2.2 / NJISO8601.podspec.json
检查目标以整合
(``)
查找Podfile更改
- MyProject
解决`Podfile`的依赖性
完成分辨率(0步)(已用0.006555秒)(2015-03-13 15:06:41 +0100)
[!]无法找到MyProject(= 0.0.5)的规格`
Cocoapods版本0.36.0要求您明确指定源存储在您的Podfile中,例如:
source'https://github.com/CocoaPods/Specs.git'
We have private cocoapods. When I type pod repo
:
company-private
- Type: git (origin)
- URL: ssh://me@myCompany.com//path/git/PrivateCocoapods
- Path: /Users/Username/.cocoapods/repos/company-private
master
- Type: git (origin)
- URL: https://github.com/CocoaPods/Specs.git
- Path: /Users/Username/.cocoapods/repos/master
I've entered ~/.cocoapods/repos
:
$ ls
company-private master
$ cd company-private
$ ls
Specs
$ cd Specs:
$ ls
MyProject
$ cd MyProject:
$ ls
0.0.19 0.0.2 0.0.5
$ cd /0.0.5:
$ ls
MyProject.podspec
In another project .podfile
I'm trying to:
pod 'MyProject', '0.0.5'
And after pod install
or pod update
I receive:
$ pod install
Analyzing dependencies
[!] Unable to find a specification for `MyProject (= 0.0.5)`
Does anybody have any idea why it doesn't work..?
--- edit ---
I can reproduce it on any computer by simply typing pod install
. It wasn't working like this previously. I've used pod repo push company-private MyProject.podspec
to push to the server. It was working a week ago. Today I've pushed new version with the same way, but with --allow-warnings
flag. When I've tried to bump to version 0.0.19
it wasn't already working. I've cloned the repo and added Spec folder meantime (so you can see it now on ls
), but it still isn't working.
-- edit2 --
Output of verbose:
$ pod install --verbose
Preparing
Analyzing dependencies
Updating spec repositories
$ /usr/local/bin/git rev-parse >/dev/null 2>&1
$ /usr/local/bin/git rev-parse >/dev/null 2>&1
Updating spec repo `master`
$ /usr/local/bin/git pull --ff-only
From https://github.com/CocoaPods/Specs
4715d39..f21e61b master -> origin/master
Updating 4715d39..f21e61b
Fast-forward
Specs/ISO8601-re2c/0.3.1/ISO8601-re2c.podspec.json | 24 ++++++
Specs/Mobily/2.0.77/Mobily.podspec.json | 91 ++++++++++++++++++++++
Specs/NJISO8601/0.2.2/NJISO8601.podspec.json | 22 ++++++
3 files changed, 137 insertions(+)
create mode 100644 Specs/ISO8601-re2c/0.3.1/ISO8601-re2c.podspec.json
create mode 100644 Specs/Mobily/2.0.77/Mobily.podspec.json
create mode 100644 Specs/NJISO8601/0.2.2/NJISO8601.podspec.json
Inspecting targets to integrate
Using `ARCHS` setting to build architectures of target `Pods`: (``)
Finding Podfile changes
- MyProject
Resolving dependencies of `Podfile`
Finished resolution (0 steps) (Took 0.006555 seconds) (2015-03-13 15:06:41 +0100)
[!] Unable to find a specification for `MyProject (= 0.0.5)`
Cocoapods version 0.36.0 requires you to explicitly specify source repository in your Podfile, e.g.:
source 'https://github.com/CocoaPods/Specs.git'
这篇关于Cocoapods(私人)无法找到规格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!