Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 [firebase_auth] Cannot run version 4.7.0 on iOS #11285

Closed
Rexios80 opened this issue Jul 14, 2023 · 10 comments · Fixed by #11300
Closed

🐛 [firebase_auth] Cannot run version 4.7.0 on iOS #11285

Rexios80 opened this issue Jul 14, 2023 · 10 comments · Fixed by #11300
Labels
platform: ios Issues / PRs which are specifically for iOS. plugin: auth resolution: fixed A fix has been merged or is pending merge from a PR. type: bug Something isn't working

Comments

@Rexios80
Copy link
Contributor

Bug report

Describe the bug

Launching lib/main.dart on iPhone 14 Pro in debug mode...
main.dart:1
Xcode build done.                                           27.7s
Failed to build iOS app
Lexical or Preprocessor Issue (Xcode): 'messages.g.h' file not found
/Users/rexios/.pub-cache/hosted/pub.dev/firebase_auth-4.7.0/ios/Classes/messages.g.m:3:8

Could not build the application for the simulator.
Error launching application on iPhone 14 Pro.
Exited

Steps to reproduce

Steps to reproduce the behavior:

  1. Try to run an app on iOS using version 4.7.0

Expected behavior

That file isn't missing

@Rexios80 Rexios80 added Needs Attention This issue needs maintainer attention. type: bug Something isn't working labels Jul 14, 2023
@Rexios80
Copy link
Contributor Author

I tried regenerating with pigeon and that file doesn't show up. So either it's an issue with pigeon or an issue with your pigeon config.

@Rexios80
Copy link
Contributor Author

Also can you guys like actually use semantic versioning please? I haven't updated the firebase dependencies in this project in a long time and it's pretty much impossible to go back to the last version of the auth plugin because it's incompatible with other firebase plugins, but the versions don't describe that behavior properly.

@Rexios80
Copy link
Contributor Author

Although maybe that's hard to do with so many cyclical dependencies. Idk there has to be a better way.

@Rexios80
Copy link
Contributor Author

I made https://pub.dev/packages/flutterfire_version_manager to deal with the versioning issues

@mikenigels
Copy link

mikenigels commented Jul 15, 2023

Began seeing this issue today after recently upgrading [firebase_auth] to 4.7.0 and adding the [file_selector] package.

Seems to be related to this previous issue:
#9511

For my case I can confirm that removing the [file_selector] package clears the issue.

@Tom3652
Copy link

Tom3652 commented Jul 17, 2023

@mikenigels same for me i had to remove file_selector to be able to build, but i need this package so i am looking forward a fix on firebase_auth :/

Note : it builds correctly on MacOS, but not on iOS

@darshankawar darshankawar added the triage Issue is currently being triaged. label Jul 17, 2023
@darshankawar
Copy link

Thanks for the reports. I do see the same error as reported using latest version of the plugin.
Could this be related ? flutter/packages#4461

/cc @Lyokone

@darshankawar darshankawar added plugin: auth platform: ios Issues / PRs which are specifically for iOS. and removed Needs Attention This issue needs maintainer attention. triage Issue is currently being triaged. labels Jul 17, 2023
@Lyokone
Copy link
Contributor

Lyokone commented Jul 17, 2023

Hello thanks for the report, I'm looking into this

@efraespada
Copy link

I could manually fix it by replacing:

#import "messages.g.h"

by

#import <firebase_auth/messages.g.h>

in some files in the library:

Screenshot 2023-07-24 at 01 37 16

Could you please fix it for the next version? 😄

@russellwheatley
Copy link
Member

The fix has been merged and will be out in the next release.

@darshankawar darshankawar added the resolution: fixed A fix has been merged or is pending merge from a PR. label Jul 25, 2023
@firebase firebase locked and limited conversation to collaborators Aug 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
platform: ios Issues / PRs which are specifically for iOS. plugin: auth resolution: fixed A fix has been merged or is pending merge from a PR. type: bug Something isn't working
Projects
None yet
7 participants