Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Flutter: Failed to build iOS app - PigeonParser.h file not found

Tags:

xcode

flutter

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?

like image 922
Goodnickoff Avatar asked Oct 19 '25 19:10

Goodnickoff


1 Answers

Step 1: Try downgrading the firebase dependencies to the following:

cloud_firestore: 4.9.2
firebase_core: 2.16.0
firebase_storage: 11.2.7
firebase_auth: 4.10.0
firebase_messaging: 14.6.8
firebase_analytics: 10.5.0

Step 2: Run flutter clean and flutter pub get.

Step 3: cd to ios directory and run pod update.

I just fixed the problem by following the 3 steps mentioned above.

like image 89
Muhammad Adnan Avatar answered Oct 25 '25 03:10

Muhammad Adnan