Cannot preview in this file - unexpected error occurred

I am using Xcode 11 beta 3 with macOS 10.15 beta (19A501i), but when I am opening a view and tring to preview, it will get an error message about this:


Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory" UserInfo={NSLocalizedDescription=Failed to install the requested application, NSLocalizedFailureReason=An application bundle was not found at the provided path., NSLocalizedRecoverySuggestion=Provide a valid path to the desired application bundle.}

Replies

Did you ever resolve this? Having same issue with the new XCode and Catalina at the moment

check your project path

in my case, project path contained uppercase letters

so xcode linked wrong path