-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Remote Config's addOnConfigUpdateListener crashing with Swift 6 set as Swift Language Version #14257
Comments
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight. |
We have the same issue |
Below is a stacktrace, I can't reproduce it in the simulator or on my own device but we see some of these crashes in our Beta group. It happens when the remote update closure is called
|
@ErikLuimes That crash may have been addressed in the 11.5.0 release. See #13776 and #13825 |
Hi @paulb777. Based on what I can tell, those issues still don't fix the crash as the crash is . As to your comment above about the repo not building, please annotate the RemoteConfigProvider class with '@mainactor' instead of '@preconcurrency' and it will compile and crash when you run. Please let me know if you need any more help. |
@ncooke3 After the Firebase 11.7.0 update, we are still experiencing crashes in Swift 6.0 within the addOnConfigUpdateListener function, particularly in the remoteConfigUpdateCompletion closure. The crash appears to be related to the listener located on line 468 of the RCNConfigRealtime.m file. We would greatly appreciate it if you could investigate this issue and let us know if there are any updates or an estimated timeline for a fix. Thank you for your support! |
Thanks, @oy-yeonhwas, for the feedback. As a workaround until a fix is ready, you may be able to mark the closure passed to the API as Sendable. E.g. with activate API remoteConfig.activate { @Sendable _, error in // ← Add explicit @Sendable before closure params
// ....
} |
Description
Reproducing the issue
To reproduce the issue, download this sample remote config project. https://github.com/TharinduKetipe/RemoteConfigDemo/tree/develop
After downloading, run the app as is with Swift 5. The app will run correctly. Go into build settings and change Swift Language Version to Swift 6. Run the app again, and there is an immediate crash.
Firebase SDK Version
11.6.0
Xcode Version
16.1
Installation Method
Swift Package Manager
Firebase Product(s)
Remote Config
Targeted Platforms
iOS
Relevant Log Output
If using Swift Package Manager, the project's Package.resolved
Expand
Package.resolved
snippetIf using CocoaPods, the project's Podfile.lock
Expand
Podfile.lock
snippetReplace this line with the contents of your Podfile.lock!
The text was updated successfully, but these errors were encountered: