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.
In Flutter project, I Also faced with this issue. Fixed by updating flutter and cocoa pods to the latest version.
Solution:-
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
Delete the podfile.lock
file from the ios folder.
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
After everything is done run your project again
flutter run
Ref:- Running pod install
I faced the same issue and none of the above work. Finally I resolved it by:
ios/.symlinks/plugins
contains extra plugin which you are not using.podfile.lock
in ios folder, if it exists.podfile
from ios folder.pods
folder in ios directory.flutter clean
in the terminal.flutter pub get
in the terminal.flutter run
in the terminal.Hope this help 1. change directory to your project e.g /dart/apps/abc 2. type, 'flutter clean && pod update'