I am also getting a similar repeating crash. When I add or create files to my local swift packages, Xcode constantly crashes with the following: Fatal error: Attempted to read an unowned reference but the object was already deallocated.
Typically the crash happens on saving the newly created file, and building. From the stack trace, it looks like the error is happening in the IDESwiftPackageBuildable.prebuildOperations. So any action that triggers a prebuild probably is causing the crash.
Once the crashing starts, it will keep crashing until I clean build.
Filed bug here: FB9989812
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: