Cocoapods 不可用,请确保它已安装并位于您的路径中

问题描述 投票:0回答:2

执行后

sudo eas build -p ios --profile production --local
发现这样的错误

Cocoapods is not available, make sure it's installed and in your PATH
pod exited with non-zero code: 1
react-native expo cocoapods eas
2个回答
1
投票

尝试跑步

sudo gem install -n /usr/local/bin cocoapods


0
投票

在我的例子中,pod 不在 $PATH 中,所以我必须将其添加到 ~/.bash_profile:

export PATH="$HOME/.pod/bin:$PATH"

然后重新启动终端或运行

source ~/.bash_profile

© www.soinside.com 2019 - 2024. All rights reserved.