gpt4 book ai didi

ios - Cocoapods/git 'detached HEAD' 状态

转载 作者:行者123 更新时间:2023-11-29 11:29:20 40 4
gpt4 key购买 nike

cocoapods/git 有问题。我正在尝试向项目添加新的 pod 并遇到以下问题。关键是团队成员在尝试将 Pod 添加到项目时没有遇到问题。尝试重新安装/更新 cocoapods、git、删除并重新克隆一个 repo。我已经安装了以前的 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
  • ....
  • 利润

关于ios - Cocoapods/git 'detached HEAD' 状态,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55139581/

40 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com