🔥 Functions crash in IOS Release Mode only #8369
Labels
impact: crash
Behaviour causing app to crash.
Needs Attention
platform: ios
plugin: functions
Firebase Cloud Functions
type: bug
New bug report
Issue
Describe your issue here
In my IOS project, when making a call to firebase functions in Release mode, I am encountering -[NSNull length]: unrecognized selector error.
Interestingly, the call works fine when running in Debug mode on IOS. On Android, everything works correctly in both Debug and Release modes. I'll also note that authorization calls and calls to firestore work fine in both release and debug mode for both platforms.
In the "JavaScript" section of the provided bug reporting template, I included the simple function call that is triggering the error.
The crash logs do not provide a lot of detail and I have spent numerous hours trying to figure out what is happening, with no luck.
The only error I receive:
"libc++abi: terminating due to uncaught exception of type facebook::jsi::JSError: Exception in HostFunction: -[NSNull length]: unrecognized selector sent to instance 0x1e4877140
Error: Exception in HostFunction: -[NSNull length]: unrecognized selector sent to instance 0x1e4877140"
Additionally, Xcode indicates the (red) X next to Thread 2 Queue : com.meta.react.turbomodulemanager.queue (serial)
The crash logs do not point to any particular line, but I did see that within the functions library/pod, the Functions file on line 486 the does point to an NSNull() variable:
let data = data ?? NSNull()
Just a wild guess at this point, no idea. Please advise, thanks.
Project Files
Javascript
export async function getFastFinAccountsHelper(id){ try{
}
package.json
:# N/A
firebase.json
for react-native-firebase v6:# N/A
iOS
Click To Expand
ios/Podfile
:AppDelegate.m
:Android
Click To Expand
Have you converted to AndroidX?
android/gradle.settings
jetifier=true
for Android compatibility?jetifier
for react-native compatibility?android/build.gradle
:// N/A
android/app/build.gradle
:// N/A
android/settings.gradle
:// N/A
MainApplication.java
:// N/A
AndroidManifest.xml
:<!-- N/A -->
Environment
Click To Expand
react-native info
output:react-native-firebase
version you're using that has this issue:e.g. 21.11.0
Firebase
module(s) you're using that has the issue:@react-native-firebase/functions
TypeScript
?N
React Native Firebase
andInvertase
on Twitter for updates on the library.The text was updated successfully, but these errors were encountered: