How to solve “error running pod install” in flutter on mac?

前端 未结 4 2317
粉色の甜心
粉色の甜心 2021-02-19 15:11

I have an error when I tried to launch my project on my iPhone, the basic Flutter example is working on my iPhone but when I use my project I have this error.

4条回答
  •  温柔的废话
    2021-02-19 15:34

    This happens when we change any plugins versions or flutter pub package.

    I was getting a similar error, so I used many different things but still nothing happened but finally I got an exact solution For the solution follow the below steps

    1. Delete the podfile.lock file from the ios folder.

    2. Open the terminal, go to the ios folder directory and run pod install. It could take some time to install.

      If pod install gives any error then try this

      pod install --repo-update 
      
    3. After everything is done run your project again

      flutter run
      

    Ref:- Running pod install

提交回复
热议问题