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

I'm updated my react native version to 0.73.6 'FirebaseCrashlytics/FirebaseCrashlytics-Swift.h' file not found #7710

Closed
Mohamed-Ziyad opened this issue Mar 27, 2024 · 7 comments
Labels
Help: Needs Triage Issue needs additional investigation/triaging. Impact: Bug New bug report

Comments

@Mohamed-Ziyad
Copy link

Mohamed-Ziyad commented Mar 27, 2024

this is my podfile
Screenshot 1445-09-17 at 15 11 41

this is the issue from xcode 15.3
Screenshot 1445-09-17 at 15 13 59

I have followed the setup according to your official website, how to fix it?

@Mohamed-Ziyad Mohamed-Ziyad added Help: Needs Triage Issue needs additional investigation/triaging. Impact: Bug New bug report labels Mar 27, 2024
@pittner
Copy link

pittner commented Mar 28, 2024

Same problem for me

@estmau
Copy link

estmau commented Mar 28, 2024

Same problem with react native 0.72.12 and firebase 1.9.1

@Mohamed-Ziyad
Copy link
Author

in your podfile add these lines
$RNFirebaseAsStaticFramework = true
config = use_native_modules!
use_frameworks! :linkage => :static

Screenshot 1445-09-19 at 12 48 19

@DeepakSharma04
Copy link

Hye @Mohamed-Ziyad , can you check this
I'm updated my react native version to 0.73.4 and getInitialNotification() and onNotificationOpenedApp() does not work in iOS #7715

@Mohamed-Ziyad
Copy link
Author

in your index file.
import messaging from '@react-native-firebase/messaging';

add this line.
messaging().setBackgroundMessageHandler(async remoteMessage => {
});

@alex-mironov
Copy link

Same problem

@mikehardy
Copy link
Collaborator

mikehardy commented Apr 3, 2024

use_frameworks is a strict requirement, and you dodge it at your peril - it appears that you are using unsupported workarounds so this issue will be closed

It appears that you may find firebase-ios-sdk 10.24.0 will work when released - for now, until some other module upstream is migrated to Swift - as they have attempted to help people that struggle with use_frameworks by softening the Swift migration of Crashlytics which landed in 10.23.0, but adopting use_frameworks is the actual fix

In the meantime you can override the firebase-ios-sdk version as we document in our install docs for temporary / unsupported use to 10.22.0 or use react-native-firebase v18.x.x

firebase/firebase-ios-sdk#12611 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Help: Needs Triage Issue needs additional investigation/triaging. Impact: Bug New bug report
Projects
None yet
Development

No branches or pull requests

6 participants