cocoapods/git 有问题。
我正在尝试向项目添加新的 Pod,但出现以下问题。关键是,当一名团队成员尝试将 Pod 添加到项目时,他没有遇到这个问题。
尝试重新安装/更新 cocoapods、git、删除并重新克隆存储库。
我已经安装了以前的 SDK 版本,一切正常,但最新版本失败
Installing RescueSDK 4.0.1
[!] Error installing RescueSDK
[!] /usr/local/bin/git clone https://github.com/LogmeinRescue/iOS-SDK.git /var/folders/sp/59sclxxd21590rgz5bvwf8zw0000gn/T/d20190313-28582-12gul24 --template= --single-branch --depth 1 --branch 4.0.1
Cloning into '/var/folders/sp/59sclxxd21590rgz5bvwf8zw0000gn/T/d20190313-28582-12gul24'...
Note: checking out '913aeaa7da9a1b2140525154bfc2beefde5f4214'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
git checkout -b <new-branch-name>
git-lfs filter-process: git-lfs: command not found
fatal: the remote end hung up unexpectedly
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry the checkout with 'git checkout -f HEAD'
该问题已通过以下步骤解决:
- 卸载git
- 删除 git 配置文件
- 安装git
- ....
- Profit
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)