问题
What's happening above:
- Initialize realm model from the received array of user data.
- Write all the models at once in the realm DB in the background thread.
- Realm model is getting updated if they already exist by creating a copy.
Can anyone please guide me here about what I am doing wrong.
来源:https://stackoverflow.com/questions/55700998/enqueued-from-com-apple-main-thread-thread-1-crash-ios-swift-4-1