Xcode 11的Swift软件包管理器无法解决软件包问题。

3

在使用新的Xcode界面添加了几个Swift包后,在Xcode 11中构建项目时,我总是会遇到以下错误:

"最初的回答"

Showing All Messages :terminated(1): /Applications/Xcode-beta.app/Contents/Developer/usr/bin/git -C /Users/<xyz>/Library/Developer/Xcode/DerivedData/<xyz>-cqkqfkidemtecxegtugdwffhvvmp/SourcePackages/checkouts/ios-sign-in-with-apple checkout -f 2b61cc97dea9d34f913c22c799476eb8e0a31144 output:
Note: checking out '2b61cc97dea9d34f913c22c799476eb8e0a31144'.

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>

HEAD is now at 2b61cc9 inicial project

This repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting .git/hooks/post-checkout.

据我所见,您处于分离的 HEAD 状态。尝试通过创建一个新分支并切换到该分支来解决这个问题,然后再试一次。 - Braham Youssef
1个回答

4
  • 通过链接 git-lfs 解决了这个问题。
  • ln /usr/local/bin/git-lfs /Applications/Xcode-beta.app/Contents/Developer/usr/bin/git-lfs
    

    这里得到了灵感 GitHub链接


    网页内容由stack overflow 提供, 点击上面的
    可以查看英文原文,
    原文链接