Dealing with 0xdead10cc's in SwiftData
I'm writing today about another tricky crash I recently solved in my Roku remote app. Unlike the the other crash I wrote about recently, this one was actually caught by the iOS crash reporter. What made this bug particularly tricky was the fact that the standard XCode crash viewer obfuscated the underlying reason for the crash. In this post, I'm going to walk through how I identified the true cause of the crash and solved the underlying problem. At the end of the writeup, I'll share some best practices I learned about managing background execution on iOS.