Skip to content
This repository has been archived by the owner on Aug 28, 2021. It is now read-only.

App crashed when using firebase.firestore.FieldValue.serverTimestamp() #21

Open
vsyw opened this issue Jan 30, 2019 · 0 comments
Open

Comments

@vsyw
Copy link

vsyw commented Jan 30, 2019

When use firebase.firestore.FieldValue.serverTimestamp(), the app would be terminated by Xcode with an error message "libc++abi.dylib: terminating with uncaught exception of type NSException
", and it looks like there is a type error in EXFirebaseFirestoreDocumentReference.m at #422,

NSString *string = (NSString *) value;

but value is NSDictionary instead of NSString, so when modified #422 to

NSString *string = (NSString *) value[typeKey];

it works fine.

@vsyw vsyw changed the title Error when use firebase.firestore.FieldValue.serverTimestamp() App crashed when use firebase.firestore.FieldValue.serverTimestamp() Jan 30, 2019
@vsyw vsyw changed the title App crashed when use firebase.firestore.FieldValue.serverTimestamp() App crashed when using firebase.firestore.FieldValue.serverTimestamp() Jan 30, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant