Xcode 12 MessageSendingError: Connection interrupted: send previewInstances message to agent

New SwiftUI files are no longer rendering preview in canvas. I'm getting the error

Code Block
MessageSendingError: Connection interrupted: send previewInstances message to agent.


Existing views still render so far, but the default hello world isn't rendering.

I've restarted Xcode, my mac, clean and rebuilt the project and no change. I've tried add .environment(\.colorScheme, .dark) to the preview and that made no difference as well.

What am I missing?

Accepted Answer

There's a firebase bug causing this. It's documented here https://github.com/firebase/firebase-ios-sdk/issues/6574

Answers

There's a firebase bug causing this. It's documented here https://github.com/firebase/firebase-ios-sdk/issues/6574