-
Notifications
You must be signed in to change notification settings - Fork 1.6k
FirApp configure crash specific to iOS 8 #4957
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
Comments
This comment has been minimized.
This comment has been minimized.
@gatesjef Could you please specify Firebase SDK versions (in particular FirebaseCore and FirebaseAnalytics) you are using. |
Most likely the issue is related to a different behaviour of NSMutableDictionary setObject:forKeyedSubscript: method on iOS 8. A possible workaround may be adding a key |
Adding the ANALYTICS_SAFELISTED_EVENTS array key fixed the issue within the simulator. Thanks! Sorry, I don't know a great way to get the version number for the particular Firebase libraries on iOS that we are using. I can't seem to find any reference to the version within the code files themselves and unfortunately we don't have access to the repository history going back to the date. It was 'Whatever was latest spring-ish 2019 at the same time android was on firebase-messaging:17.4.0.' If you have any suggestions of how to get this info, please let me know. |
@gatesjef If you use Cocoapods to manage your dependency you probably should have |
@gatesjef I would recommend to double check that Analytics is working as expected after adding |
We don't use cocopods, sorry. We just downloaded the frameworks and then added them manually to the workspace. Thanks for the heads up about testing. We only really use the Messaging component (on purpose anyways, I believe the system is reporting some analytics stuff by default and we haven't gone through the steps to try and turn that off.) So we'll double check that functionality out as soon as we get that on the physical device. |
The user with the 8.4.1 device launched successfully with the change. |
This is fixed in upstream Analytics and will be out in a future release, so after a while the workaround will no longer be necessary. Google-internal change: cr/297222629 |
The fix scheduled to be released in 6.19.0 - M66 |
Xcode version: 10.2.1
iOS Version : 8.4.1 (8.4 simulator)
This involves the Core/Messaging components. I'm uncertain the Firebase version, is there a way to tell from the header/module files? Our Android version that was updated at pretty much the same time (spring 2019) is firebase-messaging:17.4.0. (The android version has no problems).
Calling [FirApp configure] crashes on iOS 8.4 (simulator) with:
'NSInvalidArgumentException', reason:' *** setObjectForKey: object cannot be nil (key:safelisted_events)'
Here is an elided version ouf our plist
GoogleServer-Info-elided.plist
A user reported what seems to be this crash as well on 8.4.1 physical, but we don't have access to the device to validate.
This works fine on other iOS versions we've tested, (physical 9.3.5, simulator 12.2, and roughly half a dozen user devices of unknown config).
The text was updated successfully, but these errors were encountered: