Closed marc7garcia closed 11 months ago
Same here!
same for flutter macOS ! ".pub-cache/hosted/pub.dev/firebase_auth-4.11.0/macos/Classes/PigeonParser.m:5:9: fatal error: 'PigeonParser.h' file not found
Just tried with new updates of firebase on iOS (published on hour ago) and I have also the same issue (but it works on Android).
firebase_core: ^2.18.0 firebase_auth: ^4.11.0 cloud_firestore: ^4.10.0 firebase_storage: ^11.3.0
Could not build the precompiled application for the device.
Lexical or Preprocessor Issue (Xcode): 'PigeonParser.h' file not found
/.pub-cache/hosted/pub.dev/firebase_auth-4.11.0/ios/Classes/PigeonParser.m:4:8
I tried also 'flutter pub cache clean' and a 'pod install --repo-update' (all was updated well, but still this PigeonParser error)
Flutter doctor
[β] Flutter (Channel stable, 3.13.7, on macOS 13.6 22G120 darwin-x64, locale fr-FR) [β] Android toolchain - develop for Android devices (Android SDK version 33.0.2) [β] Xcode - develop for iOS and macOS (Xcode 15.0) [β] Chrome - develop for the web [β] Android Studio (version 2022.2) [β] VS Code (version 1.83.1) [β] Connected device (3 available) [β] Network resources
Just tried with new updates of firebase on iOS (published on hour ago) and I have also the same issue (but it works on Android).
firebase_core: ^2.18.0 firebase_auth: ^4.11.0 cloud_firestore: ^4.10.0 firebase_storage: ^11.3.0
Could not build the precompiled application for the device. Lexical or Preprocessor Issue (Xcode): 'PigeonParser.h' file not found /.pub-cache/hosted/pub.dev/firebase_auth-4.11.0/ios/Classes/PigeonParser.m:4:8 I tried also 'flutter pub cache clean' and a 'pod install --repo-update' (all was updated well, but still this PigeonParser error)
Flutter doctor
[β] Flutter (Channel stable, 3.13.7, on macOS 13.6 22G120 darwin-x64, locale fr-FR) [β] Android toolchain - develop for Android devices (Android SDK version 33.0.2) [β] Xcode - develop for iOS and macOS (Xcode 15.0) [β] Chrome - develop for the web [β] Android Studio (version 2022.2) [β] VS Code (version 1.83.1) [β] Connected device (3 available) [β] Network resources
Yes, here I have the same thing, on Android works ok but in iOS don't work.
For now use this in your pub yaml
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
Same issue here!
same here
For now use this in your pub yaml
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
This temporary fix worked for me (remember to pod update & install)
Pubspec.yaml did this Firebase_core: ^2.16.0 Firebase_auth: 4.10.1 Google_sign_in: ^6.1.5 Cloud_firestore: ^4.9.2
After this $ flutter clean $ rm -Rf ios/Pods $ rm -Rf ios/.symlinks $ rm -Rf ios/Flutter/Flutter.framework $ rm -Rf ios/Flutter/Flutter.podspec $ rm ios/Podfile When I did it, it was cured safely.
Apparently Firebase_auth: ^..* of If you don't delete "^", it doesn't seem to be cured no matter how low the version.
For me, to back in my previous configuration in .yaml or try what is suggested in the feed doesn't work. I still have the same message on 'pigeonParser.h'
I tried with this version what was suggested by @johnebere58 and seem worked for @infomus cloud_firestore: 4.9.2 firebase_core: 2.16.0 firebase_storage: 11.2.7 firebase_auth: 4.10.0
But, even after pod install and update, it doesn't work for me. I also try a pub update one by one for each firebase package. I also tried to clean up all cache (flutter pub cache clean, flutter clean, flutter pub get, flutter pub update)
I don't know why my environnement doesn't want to come back in my previous configuration before to update new firebase package or to change other version of the .yaml.
What can I do ?
I'm facing same issue here
Failed to build iOS app
Lexical or Preprocessor Issue (Xcode): 'PigeonParser.h' file not found
/Users/myuser/.pub-cache/hosted/pub.dev/firebase_auth-4.11.0/ios/Classes/PigeonParser.m:4:8
PigeonParser.m:4
Flutter --version
Flutter 3.13.5 β’ channel stable β’ https://github.com/flutter/flutter.git
Framework β’ revision 12fccda598 (4 weeks ago) β’ 2023-09-19 13:56:11 -0700
Engine β’ revision bd986c5ed2
Tools β’ Dart 3.1.2 β’ DevTools 2.25.0
For me, to back in my previous configuration in .yaml or try what is suggested in the feed doesn't work. I still have the same message on 'pigeonParser.h'
I tried with this version what was suggested by @johnebere58 and seem worked for @infomus cloud_firestore: 4.9.2 firebase_core: 2.16.0 firebase_storage: 11.2.7 firebase_auth: 4.10.0
But, even after pod install and update, it doesn't work for me. I also try a pub update one by one for each firebase package. I also tried to clean up all cache (flutter pub cache clean, flutter clean, flutter pub get, flutter pub update)
I don't know why my environnement doesn't want to come back in my previous configuration before to update new firebase package or to change other version of the .yaml.
What can I do ?
Quick one.
Did you also delete your Podfile.lock? Please ensure you remove the "^" symbol from the plugins
for instance; use "firebase_core: 2.16.0" instead of "firebase_core: ^2.16.0"
For now use this in your pub yaml
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
temporally, that solution is working.
How to solve it Is it good to erase this folder and see it? (I tried it for the time being, but there was no particular problem) /Users/myuser/.pub-cache/hosted/pub.dev/firebase_auth-4.11.0/ios/classes/pigeonParser.
same here. because of some dependencies firebase_ui_oauth_apple: ^1.2.12 firebase_ui_oauth_google: ^1.2.12
I used higher version than @johnebere58 in the pubspec.yaml, it worked for me like this: firebase_core: 2.17.0 firebase_auth: 4.10.1 firebase_messaging: 14.6.8 firebase_storage: 11.2.7 cloud_firestore: 4.9.2 firebase_dynamic_links: 5.3.4
For me, to back in my previous configuration in .yaml or try what is suggested in the feed doesn't work. I still have the same message on 'pigeonParser.h' I tried with this version what was suggested by @johnebere58 and seem worked for @infomus cloud_firestore: 4.9.2 firebase_core: 2.16.0 firebase_storage: 11.2.7 firebase_auth: 4.10.0 But, even after pod install and update, it doesn't work for me. I also try a pub update one by one for each firebase package. I also tried to clean up all cache (flutter pub cache clean, flutter clean, flutter pub get, flutter pub update) I don't know why my environnement doesn't want to come back in my previous configuration before to update new firebase package or to change other version of the .yaml. What can I do ?
Quick one.
Did you also delete your Podfile.lock? Please ensure you remove the "^" symbol from the plugins
for instance; use "firebase_core: 2.16.0" instead of "firebase_core: ^2.16.0"
Thanks a lot @johnebere58, it worked after to delete podfile.lock and remove the symbol "^" from the plugins, I'm now be able to build in iOS
Same here
Simple Workaround:
firebase_auth: ^4.10.1
use this version instead of the latest and make sure to clean and pub your project
flutter clean
flutter pub get
Then do the following:
pod integrate
rm ios/Podfile.lock
repo install --repo-update
Edit: Didn't work for me
Thanks for all the reports. I tried with plugin example by upgrading firebase_auth
and firebase_core
to latest versions and ran on iOS simulator which seemed to compile and run the app properly without the reported error in the console logs:
But based on the report and number of upvotes and comments, it seemed to be occuring due to breaking changes to auth plugin in underlying SDK.
Labeling for team's attention and tracking.
@darshankawar It looks like you're running on an iOS 15.2 simulator which isn't included in Xcode 15 (which runs iOS 17 simulators). Since this is an Xcode-only build issue, I can imagine that the bug only occurs on Xcode 15. (every report so far only mentions Xcode 15)
This is what worked for us: firebase_core: ^2.17.0 firebase_auth: 4.10.1 firebase_storage: ^11.2.8 firebase_messaging: ^14.6.9 cloud_firestore: ^4.9.3
I've opened a PR to fix this, it due to name clash between the Auth and Firestore modules. It wasn't caught during our e2e testing because we are running Firestore tests on a separate project (so without auth). We'll investigate how we could better catch this in the future.
I'll let you know when a new version is released with the fix
For now use this in your pub yaml
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
I had to downgrade firebase_ui_auth to make it work.
firebase_ui_auth: ^1.8.0
I also followed the steps here https://stackoverflow.com/a/77313848/10946895
I am on "Xcode - develop for iOS and macOS (Xcode 14.3)" and "Flutter (Channel stable, 3.13.7, on macOS 13.0 22A380 darwin-arm64, locale en-GB)"
The error happened to me after upgrading the flutter and pub packages.
I have tried all the suggestions on this page and still, the issue persists. I also have tried different versions of the Firebase-related packages with or without "^".
On Android it is working alright.
Any other solution?
Can you share a screenshot of the firebase packages you use on your pub yaml > I am on "Xcode - develop for iOS and macOS (Xcode 14.3)" and "Flutter (Channel stable, 3.13.7, on macOS 13.0 22A380 darwin-arm64, locale en-GB)"
The error happened to me after upgrading the flutter and pub packages.
I have tried all the suggestions on this page and still, the issue persists. I also have tried different versions of the Firebase-related packages with or without "^".
On Android it is working alright.
Any other solution?
firebase_auth: 4.10.0
Thanks. This temporary and quick solution worked for me. Thanks for backing me.
Can you share a screenshot of the firebase packages you use on your pub yaml > I am on "Xcode - develop for iOS and macOS (Xcode 14.3)" and "Flutter (Channel stable, 3.13.7, on macOS 13.0 22A380 darwin-arm64, locale en-GB)"
The error happened to me after upgrading the flutter and pub packages. I have tried all the suggestions on this page and still, the issue persists. I also have tried different versions of the Firebase-related packages with or without "^". On Android it is working alright. Any other solution?
Have tried the latest resolvable versions as well as lower version all with or without "^" but if it helps, the current ones are:
I am now able to run on iOS after downgrading some of the Firebase packages.
[β] Flutter (Channel stable, 3.13.7, on macOS 13.0 arm64, locale en-GB)
β’ Flutter version 3.13.7 on channel stable
β’ Dart version 3.1.3
β’ DevTools version 2.25.0
[β] Xcode - develop for iOS and macOS (Xcode 14.3)
β’ CocoaPods version 1.13.0
firebase_core: ^2.17.0
firebase_auth: ^4.10.1
cloud_firestore: ^4.9.2
cloud_functions: ^4.4.2
firebase_dynamic_links: ^5.3.4
firebase_messaging: ^14.6.8
Released as part of https://pub.dev/packages/cloud_firestore/versions/4.11.0
Confirmed fix. Unlocked firebase_auth from 4.10.1, ran flutter pub upgrade, and I can still run on IOS. Thanks for the fast fix.
Bug report
Describe the bug Error 'PigeonParser.h' file not found when compiling firebase_auth 4.11.0 on iOS. It works on Android.
Steps to reproduce
Steps to reproduce the behavior:
Expected behavior
Compile and execute the app successful.
Flutter doctor
Run
flutter doctor
and paste the output below:octor summary (to see all details, run flutter doctor -v): [!] Flutter (Channel unknown, 3.7.12, on macOS 13.6 22G120 darwin-arm64, locale es-ES) ! Flutter version 3.7.12 on channel unknown at /Users/marc/Library/Developer/flutter Currently on an unknown channel. Run
flutter channel
to switch to an official channel. If that doesn't fix the issue, reinstall Flutter by following instructions at https://flutter.dev/docs/get-started/install. ! Unknown upstream repository. Reinstall Flutter by following instructions at https://flutter.dev/docs/get-started/install. [β] Android toolchain - develop for Android devices (Android SDK version 34.0.0) [β] Xcode - develop for iOS and macOS (Xcode 15.0) [β] Chrome - develop for the web [β] Android Studio (version 2022.3) [β] IntelliJ IDEA Community Edition (version 2023.2.3) [β] VS Code (version 1.81.1) [β] Connected device (4 available) [β] HTTP Host Availability