Post

Replies

Boosts

Views

Activity

Reply to Swift/RangeReplaceableCollection.swift error
I was getting the same error while running the app on iOS 14.1 (xCode 12). Error: Fatal error: Can't remove first element from an empty collection: file Swift/RangeReplaceableCollection.swift, line 624 Possible cause: Apple might have changed how the app behaved in multithreaded environment. What I had done: I was making array of some model classes in synchronous main queue. But using that array in a different thread. What I changed to make it work: Now, I am using that array in the same thread it was being appended in. Hope this helps. 
Nov ’20