This is my default contentView :
import SwiftUI
struct SwiftUIView: View { var body: some View { Text(“Hello, World!”) } }
#Preview { SwiftUIView() }
It is not even loading for printing “Hello, World!”
Above is the default view we use for swiftUI and its preview is not working.
Configuration:
Xcode – Version 15.0.1
= PREVIEW UPDATE ERROR:
FailedToLaunchAppError: Failed to launch com.max.doctorapp
==================================
| RemoteHumanReadableError: The operation couldn’t be completed. Transaction failed. Process failed to launch. (process launch failed)
|
| BSTransactionError (1):
| ==error-reason: process launch failed
| ==error-description: Process failed to launch.
| ==precipitating-error: Error Domain=FBProcessExit Code=64 "The process failed to launch." UserInfo={NSLocalizedFailureReason=The process failed to launch., BSErrorCodeDescription=launch-failed, NSUnderlyingError=0x600000c4d050 {Error Domain=RBSRequestErrorDomain Code=5 "Launch failed." UserInfo={NSLocalizedFailureReason=Launch failed., NSUnderlyingError=0x600000c4ca20 {Error Domain=NSPOSIXErrorDomain Code=111 "Unknown error: 111" UserInfo={NSLocalizedDescription=Launchd job spawn failed}}}}}
I have tried with EXCLUDED_ARCHS=x64_64
Checked it setting the optimization level as Onone , not worked for me.
Checked using Generic devices, not worked.
smriti gangele is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.