执行后
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
尝试跑步
sudo gem install -n /usr/local/bin cocoapods
在我的例子中,pod 不在 $PATH 中,所以我必须将其添加到 ~/.bash_profile:
export PATH="$HOME/.pod/bin:$PATH"
然后重新启动终端或运行
source ~/.bash_profile