Flutter iOS build failed an error of pod files: Podfile is out of date

前端 未结 8 527
猫巷女王i
猫巷女王i 2021-01-07 18:48

I\'m trying to build my app on the ios simulator(ios 13), but the build fails and gives an error of pod files: Podfile is out of date

This is the error.



        
相关标签:
8条回答
  • 2021-01-07 19:48

    MacOS Catalina has changed the default terminal from Bash to ZSH. As a result, we'll be adding configs to ~/.zshrc instead of ~/.bash_profile like we used in the past.

    You can manually change from Bash to ZSH anytime by running the following command: chsh -s /bin/zsh Installing Homebrew First, we need to install Homebrew. Homebrew allows us to install and compile software packages easily from source.

    Homebrew comes with a very simple install script. When it asks you to install XCode CommandLine Tools, say yes.

    Open Terminal and run the following command: ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"Now that we have Homebrew installed, we can use it to install Ruby.

    We're going to use rbenv to install and manage our Ruby versions.

    To do this, run the following commands in your Terminal:

    brew install rbenv ruby-build

    Add rbenv to bash so that it loads every time you open a terminal

    echo 'if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi' >> ~/.zshrc source ~/.zshrc

    Install Ruby

    rbenv install 2.7.2 rbenv global 2.7.2 ruby -v that's all Use pod install command in your ios directory to install new pods in your project. cd ios pod install enjoy

    0 讨论(0)
  • 2021-01-07 19:49

    MacOS Catalina has changed the default terminal from Bash to ZSH. As a result, we'll be adding configs to ~/.zshrc instead of ~/.bash_profile like we used in the past.

    You can manually change from Bash to ZSH anytime by running the following command: chsh -s /bin/zsh Installing Homebrew First, we need to install Homebrew. Homebrew allows us to install and compile software packages easily from source.

    Homebrew comes with a very simple install script. When it asks you to install XCode CommandLine Tools, say yes.

    Open Terminal and run the following command: ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" Now that we have Homebrew installed, we can use it to install Ruby.

    We're going to use rbenv to install and manage our Ruby versions.

    To do this, run the following commands in your Terminal: brew install rbenv ruby-build Add rbenv to bash so that it loads every time you open a terminal echo 'if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi' >> ~/.zshrc source ~/.zshrc

    Install Ruby

    rbenv install 2.7.2 rbenv global 2.7.2 ruby -v that's all Use pod install command in your ios directory to install new pods in your project. cd ios pod install enjoy

    0 讨论(0)
提交回复
热议问题