ios Cocoapods 继续“分析依赖”
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/23006683/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Cocoapods staying on "analyzing dependencies"
提问by Noor
I'm using cocoapods to manage my dependencies. All have been working fine. Now, When I'm creating a new project, added the following to my podfile,
我正在使用 cocoapods 来管理我的依赖项。一切都很好。现在,当我创建一个新项目时,将以下内容添加到我的 podfile 中,
platform :ios, '6.1'
pod 'RestKit', '~> 0.20.0'
when i'm doing pod install, it is continually staying on analyzing dependencies.
当我进行 pod install 时,它一直在分析依赖项。
Any idea why this problem?
知道为什么会出现这个问题吗?
回答by Gabriel Jensen
I had the same problem, and since my output with --verbose was different than the linked SO answer, I'm including that response along with a verification that it worked for me:
我遇到了同样的问题,并且由于我使用 --verbose 的输出与链接的 SO 答案不同,因此我包含该响应以及它对我有用的验证:
$ pod repo remove master
$ pod setup
$ pod install
回答by ajimix
Another way to fix that is to delete the Pods
folder and the Podfile.lock
file and run pod install
again.
另一种解决方法是删除Pods
文件夹和Podfile.lock
文件,然后pod install
再次运行。
回答by ChrisHaze
Something that seemed to work for me:
似乎对我有用的东西:
- Cancel first attempt using Ctrl-C
- Reattempt using pod install
- 使用Ctrl-C取消第一次尝试
- 使用pod install重新尝试
Also, once the pod has installed successfully, be sure to close the current project before opening the project.workspace.
此外,一旦 pod 安装成功,请务必在打开 project.workspace 之前关闭当前项目。
回答by aaronschachter
i2097i's comment was the fix for me (so I can't take credit for this, and can't seem to upvote his comment).
i2097i 的评论对我来说是解决之道(所以我不能相信这一点,而且似乎不能赞成他的评论)。
Check for any uncommitted changes (I had just added my Podfile but it was not committed). Staging and committing got pod install
working.
检查任何未提交的更改(我刚刚添加了我的 Podfile 但它没有提交)。分期和提交开始pod install
工作。