简体   繁体   中英

pod install in cocoapods not working after updating macOS to catalina

when executing $pod install at specific xcode workspace folder,

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 ...

cannot update any of the pods listed in the podfile list. Is this related to cocoapods problem?

The problem is caused by the system update of macOS. You need to update your cocoapods after updating your macOS system from the terminal.

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)

Hope this do solve your problem.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM