Xcode 15.x previews not working

Have a fairly large project in production and after updating Xcode from 14.x to 15.x the previews are no longer working. Devs in our team are using various Apple silicon machines.

Error:

== PREVIEW UPDATE ERROR:

FailedToLaunchAppError: Failed to launch com.utr.utrplay

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

|  RemoteHumanReadableError: The operation couldn’t be completed. Transaction failed. Process failed to launch. (process launch failed)
|  
|  BSTransactionError (1):
|  ==error-description: Process failed to launch.
|  ==NSLocalizedFailureReason: Transaction failed. Process failed to launch. (process launch failed)
|  ==transaction: <FBApplicationProcessLaunchTransaction: 0x600003b240e0>
|  ==precipitating-error: Error Domain=FBProcessExit Code=64 "The process failed to launch." UserInfo={NSLocalizedFailureReason=The process failed to launch., BSErrorCodeDescription=launch-failed, NSUnderlyingError=0x600000c2fb40 {Error Domain=RBSRequestErrorDomain Code=5 "Launch failed." UserInfo={NSLocalizedFailureReason=Launch failed., NSUnderlyingError=0x600000c2ea90 {Error Domain=NSPOSIXErrorDomain Code=111 "Unknown error: 111" UserInfo={NSLocalizedDescription=Launchd job spawn failed}}}}}
|  ==error-reason: process launch failed 

Hi,

Sorry to hear you are having problems getting previews working. This error looks like a known issue we are tracking that seems primarily related to usage of the EXCLUDED_ARCHS (or potentially bespoke ARCH) build setting.

If you'd like us to verify then the best next step will be to file a feedback with diagnostics so we can take a look.

Steps to generate helpful diagnostics:

  1. Download and install the logging profile on all devices involved. Instructions and profiles are available here: https://developer.apple.com/bug-reporting/profiles-and-logs/?name=swift
  2. Reproduce the issue
  3. Click the "Diagnostics" button in the error banner in Previews' Canvas area (or if the banner is missing you can use the menu: Editor > Canvas > Diagnostics)
  4. In the sheet that appears, click "Generate Report" in the bottom left of the sheet
  5. Attach (or make from the folder) the resulting zip file to the bug (will be named something like previews-diagnostics-0123456789.zip)
  6. Generate the sysdiagnose(s) and attach those too
Xcode 15.x previews not working
 
 
Q