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

[iOS 18] Depend on latest firebase_messaging to fix "include of non-modular header inside framework module 'firebase_messaging.FLTFirebaseMessagingPlugin'" error #5521

Closed
2 of 14 tasks
dJani97 opened this issue Oct 2, 2024 · 2 comments
Labels
pending-maintainer-response Pending response from a maintainer of this repository

Comments

@dJani97
Copy link

dJani97 commented Oct 2, 2024

Description

I'm getting the following error in my iOS builds using the latest iOS 18 tooling:

Running Xcode build...                                                  
 └─Compiling, linking and signing...                         4.0s
Xcode archive done.                                         104.2s
Failed to build iOS app
Lexical or Preprocessor Issue (Xcode): Include of non-modular header inside framework module 'firebase_messaging.FLTFirebaseMessagingPlugin': '/Users/username/flutter/project-name/ios/Pods/Headers/Public/Firebase/Firebase.h'
/Users/username/.pub-cache/hosted/pub.dev/firebase_messaging-15.1.0/ios/Classes/FLTFirebaseMessagingPlugin.h:11:8

Encountered error while archiving for device.

This is caused by an outdated version of the Firebase Messaging plugin. The latest firebase_messaging: ^15.1.3 fixes this problem, as described in the release notes.

The problem can also be fixed by using the following dependency overrides, but I am yet to test if this introduces any runtime errors, and I do not recommend anyone using this code in a production app:

dependency_overrides:
  firebase_messaging: ^15.1.3
  web: ^1.0.0

Could we please get a new release of amplify_push_notifications_pinpoint that depends on firebase_messaging: ^15.1.3 or newer?

Categories

  • Analytics
  • API (REST)
  • API (GraphQL)
  • Auth
  • Authenticator
  • DataStore
  • Notifications (Push)
  • Storage

Platforms

  • iOS
  • Android
  • Web
  • macOS
  • Windows
  • Linux

Flutter Version

3.24.3

Amplify Flutter Version

2.4.1

Deployment Method

Amplify Gen 2

@github-actions github-actions bot added pending-triage This issue is in the backlog of issues to triage pending-maintainer-response Pending response from a maintainer of this repository labels Oct 2, 2024
@dJani97
Copy link
Author

dJani97 commented Oct 2, 2024

I realized that Amplify does not directly depend on firebase_messaging and something else was the culprit. Closing this issue.

Updating Amplify's web dependency would still be nice though, but that's another issue.

@dJani97 dJani97 closed this as completed Oct 2, 2024
@github-actions github-actions bot added pending-maintainer-response Pending response from a maintainer of this repository and removed pending-triage This issue is in the backlog of issues to triage pending-maintainer-response Pending response from a maintainer of this repository labels Oct 2, 2024
Copy link

github-actions bot commented Oct 2, 2024

This issue is now closed. Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pending-maintainer-response Pending response from a maintainer of this repository
Projects
None yet
Development

No branches or pull requests

1 participant