运行 在 Mac 迷你机器上的 jenkins 上安装 pod 出错

Running pod install on jenkins in a Mac mini machine gives error

我在 mac mini 中设置了 Jenkins 来自动构建我的 IOS 应用程序。

当 运行 pod install 工作时,cocoapods 抛出错误:

/Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:439:in help!': [!] You cannot run CocoaPods as root. (CLAide::Help)

我尝试传递选项命令 `--allow root,但它一直给我同样的错误。

问题发生在 运行 sudo brew services start jenkins-lts

运行 仅 brew services start jenkins-lts ,解决问题