Cocoapods(私人)无法找到规范
Cocoapods (private) unable to find specification
我们有私人椰子。当我输入 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
我输入了~/.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
在另一个项目中.podfile
我正在尝试:
pod 'MyProject', '0.0.5'
在 pod install
或 pod update
之后我收到:
$ pod install
Analyzing dependencies
[!] Unable to find a specification for `MyProject (= 0.0.5)`
有没有人知道为什么它不起作用..?
--- 编辑 ---
我只需输入 pod install
即可在任何计算机上复制它。它以前不是这样工作的。我已经使用 pod repo push company-private MyProject.podspec
推送到服务器。它在一周前工作。今天我用同样的方式推送了新版本,但是带有 --allow-warnings
标志。当我尝试升级到版本 0.0.19
时,它还没有工作。我已经克隆了 repo 并同时添加了 Spec 文件夹(所以你现在可以在 ls
上看到它),但它仍然无法正常工作。
-- edit2 --
详细输出:
$ 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 版本 0.36.0 要求您在 Podfile 中明确指定源存储库,例如:
source 'https://github.com/CocoaPods/Specs.git'
我们有私人椰子。当我输入 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
我输入了~/.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
在另一个项目中.podfile
我正在尝试:
pod 'MyProject', '0.0.5'
在 pod install
或 pod update
之后我收到:
$ pod install
Analyzing dependencies
[!] Unable to find a specification for `MyProject (= 0.0.5)`
有没有人知道为什么它不起作用..?
--- 编辑 ---
我只需输入 pod install
即可在任何计算机上复制它。它以前不是这样工作的。我已经使用 pod repo push company-private MyProject.podspec
推送到服务器。它在一周前工作。今天我用同样的方式推送了新版本,但是带有 --allow-warnings
标志。当我尝试升级到版本 0.0.19
时,它还没有工作。我已经克隆了 repo 并同时添加了 Spec 文件夹(所以你现在可以在 ls
上看到它),但它仍然无法正常工作。
-- edit2 --
详细输出:
$ 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 版本 0.36.0 要求您在 Podfile 中明确指定源存储库,例如:
source 'https://github.com/CocoaPods/Specs.git'