[英]pod install in cocoapods not working after updating macOS to catalina
when executing $pod install
at specific xcode workspace folder, 在特定的xcode工作区文件夹执行
$pod install
时,
the terminal shows: 终端显示:
bad interpreter: No such file or directory
The default interactive shell is now zsh.
To update your account to use zsh, please run `chsh -s /bin/zsh`
... usr/bin/ruby: bad interpreter: No such file or directory
... ...
usr/bin/ruby: bad interpreter: No such file or directory
...
cannot update any of the pods listed in the podfile list. 无法更新Podfile列表中列出的任何Pod。 Is this related to cocoapods problem?
这与可可足类问题有关吗?
The problem is caused by the system update of macOS. 该问题是由macOS的系统更新引起的。 You need to update your cocoapods after updating your macOS system from the terminal.
从终端更新macOS系统后,您需要更新您的cocoapods 。
You can update your cocoapods by executing the following command lines: 您可以通过执行以下命令行来更新 可可足类 :
$ sudo gem update --system
$ sudo gem install cocoapods -n/usr/local/bin
This works for me ( macOS Catalina 10.15) 这对我有用 ( macOS Catalina 10.15)
Hope this do solve your problem. 希望这能解决您的问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.