I'm new to Swift and Xcode and have been having issues previewing projects on my connected device (iPhone 13). I'm able to preview just fine in the simulator, the issue seems to be working with the connected device. I've seen several different errors, but the general/most common error is "Cannot preview in this file" with the following diagnostics:
RemoteHumanReadableError: The operation couldn’t be completed. Transaction failed. Process failed to launch. (process launch failed)
BSTransactionError (1):
==error-reason: process launch failed
==NSLocalizedFailureReason: Transaction failed. Process failed to launch. (process launch failed)
==transaction: <FBApplicationProcessLaunchTransaction: 0x283f607e0>
==error-description: Process failed to launch.
==================================
| MessageSendFailure: Message send failure for <ServiceMessage 13: relaunch>
This issue seems to be related to this open question, but is a slightly different error.
I've tried:
- Deleting the DerivedData
- Unchecking "Automatically Refresh Canvas"
- Restarting my Mac
- Installing the newest version of Xcode (v14.0) from the developer site (14A309)
- Installing the newest version of iOS (v16.0)
- Cleaning the build folder
- Opening new projects with unit tests disabled (currently testing with the default contents of a new project, so it's nothing in my code specifically that's breaking things)
- Getting in touch with Apple's developer support team (still waiting to hear back...)
Anything I'm missing?