When I try to preview my SwiftUI view in the Canvas window in Xcode, my project builds successfully but I get the following error in the Canvas window:
UVIntegration.DTXMessageError.messageRepliedWithError("Connecting to launched interactive agent 6310", Optional(Error Domain=com.apple.dt.ultraviolet.service Code=17 "connectToPreviewHost: Failed to connect to 6310: Error Domain=RemoteBundleLoaderError Code=17 "Failed to load library /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/PrivateFrameworks/XCPreviewKit.framework/Versions/Current/XCPreviewKit due to missing bootstrapping symbols" UserInfo={NSLocalizedDescription=Failed to load library /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/PrivateFrameworks/XCPreviewKit.framework/Versions/Current/XCPreviewKit due to missing bootstrapping symbols}" UserInfo={NSLocalizedDescription=connectToPreviewHost: Failed to connect to 6310: Error Domain=RemoteBundleLoaderError Code=17 "Failed to load library /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/PrivateFrameworks/XCPreviewKit.framework/Versions/Current/XCPreviewKit due to missing bootstrapping symbols" UserInfo={NSLocalizedDescription=Failed to load library /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/PrivateFrameworks/XCPreviewKit.framework/Versions/Current/XCPreviewKit due to missing bootstrapping symbols}})))
GenericHumanReadableError: unexpected error occurred messageRepliedWithError("Connecting to launched interactive agent 6310", Optional(Error Domain=com.apple.dt.xcodepreviews.service Code=17 "connectToPreviewHost: Failed to connect to 6310: Error Domain=RemoteBundleLoaderError Code=17 "Failed to load library /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/PrivateFrameworks/XCPreviewKit.framework/Versions/Current/XCPreviewKit due to missing bootstrapping symbols" UserInfo={NSLocalizedDescription=Failed to load library /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/PrivateFrameworks/XCPreviewKit.framework/Versions/Current/XCPreviewKit due to missing bootstrapping symbols}" UserInfo={NSLocalizedDescription=connectToPreviewHost: Failed to connect to 6310: Error Domain=RemoteBundleLoaderError Code=17 "Failed to load library /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/PrivateFrameworks/XCPreviewKit.framework/Versions/Current/XCPreviewKit due to missing bootstrapping symbols" UserInfo={NSLocalizedDescription=Failed to load library /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/PrivateFrameworks/XCPreviewKit.framework/Versions/Current/XCPreviewKit due to missing bootstrapping symbols}}))