Got exactly the same error when try to install a react native project. It works in the simulator perfectly.
Details
Executable Path is a Directory
Domain: DVTMachOErrorDomain
Code: 5
Recovery Suggestion: /Users/username/Library/Developer/Xcode/DerivedData/appname-bxigikhgatswxjgbdfscepuxpyzg/Build/Products/Debug-iphoneos/app.app is not a valid path to an executable file.
User Info: {
DVTErrorCreationDateKey = "2022-11-30 23:26:35 +0000";
}
System Information
macOS Version 13.0.1 (Build 22A400)
Xcode 14.1 (21534.1) (Build 14B47b)
Timestamp: 2022-12-01T00:26:35+01:00