cocopods 安装报错 pod install

  • You are in 'detached HEAD' state.

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 switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

  git switch -c <new-branch-name>

Or undo this operation with:

  git switch -

Turn off this advice by setting config variable advice.detachedHead to false

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 with 'git restore --source=HEAD :/'

执行下面命令就可以了(原理不明白)

brew install git-lfs
git lfs install
  • ArgumentError - [Xcodeproj] Unable to find compatibility version string for object version 70

Found the problem. Something had updated the "objectVersion" value in the project.pbxproj to "70" which I think is not recognized by the xcodeproj yet. I set it to "60" and the error went away.

// 看这个
// https://github.com/CocoaPods/CocoaPods/issues/12671
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容