-
Notifications
You must be signed in to change notification settings - Fork 332
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] [Debug] App crashing as soon as upload starts #122
Comments
Thanks for the report. Are you able to reproduce the issue in a fork of the RNBU example app? |
I've noticed that this only happens on Debug mode, but is fine on Release |
I'm also having the same problem... Any movement on this ? |
@TSMMark I tried it on the RNBU example app, and it is working fine. I think it is a conflict with @berkcoker @alexivison Can you confirm if you have firebase integrated? |
I just removed
And the crash stops! I don't know which one exactly was causing the conflict, but I think this solves it for now and we can move on with our lives. |
Glad to hear that @BaderSerhan! Thanks for update |
I'm still having this issue in Debug mode, did anyone have any clues/ideas? Other projects have also had this issue: WebEngage/react-native-webengage#1 |
@Shervanator Do you have firebase integrated? Because it seems to be an issue with the method |
yep! firebase performance analytics is definitely causing the issues. I have removed it for the moment, but it is a super common library, so it would be cool to figure out why its not working as well! |
same here. removing firebase performance resolves the issue |
This will disable it if you don't want to remove it just yet. Can stick that code into your AppDelegate. |
This is still an issue it seems, but @Jarred-Sumner 's fix works nicely - thanks for that! #if DEBUG
[FIRPerformance sharedInstance].dataCollectionEnabled = false;
[FIRPerformance sharedInstance].instrumentationEnabled = false;
#endif so that you don't lose the firebase performance tools for release mode :) |
I'm getting the following error as soon as I try uploading something in debug mode:
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'You must override the
supportedEvents
method of fir_0x600000393c00_VydiaRNFileUploader'In release mode, it is working just fine!
I looked in the class, and the
supportedEvents
method seems to be overrode.Here's the supportedEvents method:
And here's where the crash is happening in XCode:
_urlSession = [NSURLSession sessionWithConfiguration:sessionConfiguration delegate:self delegateQueue:nil];
The text was updated successfully, but these errors were encountered: