Suddenly I started getting this error while building the project:
Failed to build iOS app
Lexical or Preprocessor Issue (Xcode): 'PigeonParser.h' file not found
/Users/alehhutnikau/.pub-cache/hosted/pub.dev/firebase_auth-4.11.0/ios/Classes/PigeonParser.m:4:8
Encountered error while archiving for device.
I tried flutter clean
, reinitializing the iOS project, but nothing helps. Has anyone encountered something similar before?
2
Answers
Step 1: Try downgrading the firebase dependencies to the following:
Step 2: Run
flutter clean
andflutter pub get
.Step 3:
cd
toios
directory and runpod update
.I just fixed the problem by following the 3 steps mentioned above.
In my case with a Flutter project reason was that I have copied a custom repository from another project, and that repository contains a pubspec.yaml file, that generates 3 other files when you are getting dependencies for this pubspec.yaml file.
I have just deleted those files, in my case:
.flutter-plugins
.flutter-plugins-dependencies
pubspec.lock
and it generated new ones, after that everything worked perfectly.
Maybe it helps someone else…