After updating to Xcode 26, I’m no longer able to load SwiftUI previews in new projects. The preview pane shows the error:
Cannot preview in this file.
Interestingly, if I disable “Automatically Refresh Canvas”, the preview works again. It also works in older projects (created in Xcode 16.4) even when “Automatically Refresh Canvas” is turned on.

Has anyone encountered this issue or knows why it happens?
For context:
- I keep the Derived Data folder inside my project folder.
- The issue only affects new projects created after the Xcode update.
That's the preview's error:
== DATE:
Saturday, 8 November 2025 at 08:33:23 Central European Standard Time
2025-11-08T07:33:23Z
== PREVIEW UPDATE ERROR:
GroupRecordingError
Error encountered during update group #2
==================================
| FailedToLaunchAppError: Failed to launch com.<name>.DemoApp
|
| ==================================
|
| | [Remote] JITError
| |
| | ==================================
| |
| | | [Remote] CouldNotLoadInputObjectFile: Could not load object file during preview: /Users/<name>/Documents/DemoApp/DerivedData/DemoApp/Build/Intermediates.noindex/DemoApp.build/Debug-iphonesimulator/DemoApp.build/Objects-normal/arm64/ContentView.1.preview-thunk-launch.o
| | |
| | | path: /Users/<name>/Documents/DemoApp/DerivedData/DemoApp/Build/Intermediates.noindex/DemoApp.build/Debug-iphonesimulator/DemoApp.build/Objects-normal/arm64/ContentView.1.preview-thunk-launch.o
| | |
| | | ==================================
| | |
| | | | [Remote] XOJITError
| | | |
| | | | XOJITError: '/Users/<name>/Documents/DemoApp/DerivedData/DemoApp/Build/Intermediates.noindex/DemoApp.build/Debug-iphonesimulator/DemoApp.build/Objects-normal/arm64/ContentView.1.preview-thunk-launch.o': Operation not permitted
== PREVIEW UPDATE ERROR:
GroupRecordingError
Error encountered during update group #2
==================================
| FailedToLaunchAppError: Failed to launch com.<name>.DemoApp
|
| ==================================
|
| | [Remote] JITError
| |
| | ==================================
| |
| | | [Remote] CouldNotLoadInputObjectFile: Could not load object file during preview: /Users/<name>/Documents/DemoApp/DerivedData/DemoApp/Build/Intermediates.noindex/DemoApp.build/Debug-iphonesimulator/DemoApp.build/Objects-normal/arm64/ContentView.1.preview-thunk-launch.o
| | |
| | | path: /Users/<name>/Documents/DemoApp/DerivedData/DemoApp/Build/Intermediates.noindex/DemoApp.build/Debug-iphonesimulator/DemoApp.build/Objects-normal/arm64/ContentView.1.preview-thunk-launch.o
| | |
| | | ==================================
| | |
| | | | [Remote] XOJITError
| | | |
| | | | XOJITError: '/Users/<name>/Documents/DemoApp/DerivedData/DemoApp/Build/Intermediates.noindex/DemoApp.build/Debug-iphonesimulator/DemoApp.build/Objects-normal/arm64/ContentView.1.preview-thunk-launch.o': Operation not permitted