gpt4 book ai didi

ios - 我的终端上的 “pod setup” 命令出错(Cocoapods 安装)

转载 作者:太空宇宙 更新时间:2023-11-03 17:33:25 25 4
gpt4 key购买 nike

我在我的 mac 上成功安装了 cocoa pods,我在我的终端上收到了这样的消息..

Successfully installed cocoapods-0.33.1 Parsing documentation for cocoapods-0.33.1 1 gem installed.

在此之后,我在我的终端上运行以下命令 (MacBook-Pro:~user$ pod setup) 然后我收到这样的错误消息。

Setting up CocoaPods master repo [!] /usr/bin/git clone 'https://github.com/CocoaPods/Specs.git' master --depth=1 xcrun: error: active developer path ("/Volumes/Xcode/Xcode.app/Contents/Developer") does not exist, use xcode-select to change.

如何解决这个问题?请帮助我..

最佳答案

您的 Xcode 版本的路径似乎已损坏。您可以看到路径设置为:

xcode-select --print-path

您可能会看到 /Volumes/Xcode/Xcode.app/Contents/Developer,它一定不存在。您需要设置路径:

xcode-select --switch /path/to/xcode

关于ios - 我的终端上的 “pod setup” 命令出错(Cocoapods 安装),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25972333/

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