Previews not working

I have tried everything to get Xcode 13.1 to work on my new Macbook Pro 2021 running Monterey 12.0.1. Previews just will not work. I have submitted the report. I have uninstalled and reinstalled Xcode.. I have tried different simulators. NOTHING works. The simulator builds fine, but the preview does not work.

Any ideas?

`== DATE:

Saturday, November 6, 2021 at 9:57:29 AM Eastern Daylight Time

2021-11-06T13:57:29Z

== PREVIEW UPDATE ERROR:

MessageSendFailure: Message send failure for send previewInstances message to agent

==================================

|  RemoteHumanReadableError
|  
|  LoadingError: failed to load library at path "/Users/brandon/Library/Developer/Xcode/DerivedData/Build/Intermediates.noindex/Previews/Test3/Intermediates.noindex/Test3.build/Debug-iphonesimulator/Test3.build/Objects-normal/arm64/ContentView.2.preview-thunk.dylib": Optional(dlopen(/Users/brandon/Library/Developer/Xcode/DerivedData/Build/Intermediates.noindex/Previews/Test3/Intermediates.noindex/Test3.build/Debug-iphonesimulator/Test3.build/Objects-normal/arm64/ContentView.2.preview-thunk.dylib, 0x0002): tried: '/Users/brandon/Library/Developer/Xcode/DerivedData/Build/Intermediates.noindex/Previews/Test3/Products/Debug-iphonesimulator/ContentView.2.preview-thunk.dylib' (no such file), '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/Users/brandon/Library/Developer/Xcode/DerivedData/Build/Intermediates.noindex/Previews/Test3/Intermediates.noindex/Test3.build/Debug-iphonesimulator/Test3.build/Objects-normal/arm64/ContentView.2.preview-thunk.dylib' (no such file), '/Users/brandon/Library/Developer/Xcode/DerivedData/Build/Intermediates.noindex/Previews/Test3/Intermediates.noindex/Test3.build/Debug-iphonesimulator/Test3.build/Objects-normal/arm64/ContentView.2.preview-thunk.dylib' (no such file), '/usr/lib/ContentView.2.preview-thunk.dylib' (no such file))

Hi,

Sorry to hear you are having problems getting previews working. A few workaround you can try is to run xcrun simctl --set previews delete all followed by a reboot of your machine, and then try again.

If that still doesn't resolve issue then probably best next step will be to file a feedback with diagnostics. We will need the diagnostics Xcode Previews generates in order to make sure we understand the error the previews system is encountering.

  1. When you get an error in Xcode Previews, an error banner appears in the canvas
  2. Click the "Diagnostics" button in that banner
  3. In the sheet that appears, click "Generate Report" in the bottom left of the sheet
  4. Attach (or make from the folder) the resulting zip file to the bug (will be named something like previews-diagnostics-0123456789.zip)

I am seeing the same think, and am running Xcode 13.2 Beta.

I am suffering the same problem since updating Xcode...

Previews not working
 
 
Q