In my current project, previews barely work. Most of the time, the following error is displayed on top:
Cannot preview in this file -- Unexpected error occurred
Sometimes, refreshing works by clicking the Try Again button, but usually that takes multiple tries. When I click the Diagnostics button, the following error is shown:
HumanReadableSwiftError
ConfigurationError: noPreviewInfos(arch: "x86_64", sdkRoot: "/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk")
This happens both in Xcode 12 and the beta Xcode 12.2. Who has a solution for this?