RNActivityView
RNActivityView copied to clipboard
App Crash in iOS 14
Terminating app due to uncaught exception 'NSRangeException', reason: 'Cannot remove an observer <RNActivityView 0x15cc30380> for the key path "mode" from <RNActivityView 0x15cc30380> because it is not registered as an observer.'
crash occurs in "unregisterFromKVO" in dealloc method
@kasunranganamw thanks a lot
I would like to check if this fix will be merged and released soon as iOS 14 is now available and I am getting reports that my apps are crashes due to this.
I confirm, I have same crash with iOS 14
When observers are removed, can't find any observers according to the keys.
Commenting this code section stops the app from crashing but it disappears the description in the loading indicator.
- (void)unregisterFromKVO { // for (NSString *keyPath in [self observableKeypaths]) { // [self removeObserver:self forKeyPath:keyPath]; // } }
Please suggest any other solution for this. Thanks in advance.