flutter error Invalid `Podfile` file: no implicit conversion of nil into String. ive searched through discussions but I cant seem to fix the issue flutter error Invalid `Podfile` file: no implicit conversion of nil into String. ive searched through discussions but I cant seem to fix the issue ios ios

flutter error Invalid `Podfile` file: no implicit conversion of nil into String. ive searched through discussions but I cant seem to fix the issue


I got this error when I updated my flutter sdk to the new flutter 2.0, but my project was created with older version of flutter sdk (1.22).

Fixed It by deleting the Podfile and Podfile.lock in ios folder and then run:

flutter run

or

flutter build ios

That way flutter will generate the new Podfile for flutter 2.0


I have same problem when I update my mac --> BigSur and use Ruby .

And I solve it by rm -rf ios and flutter create .

Then fix some file changes in new ios


I was in channel beta and I solved like this. flutter channel stable and flutter upgrade


matomo