Not a valid path to an executable file.

Hello team can you please help me to resolve this issue


Executable Path is a Directory
Domain: DVTMachOErrorDomain
Code: 5
Recovery Suggestion: /Users/macdevelopername/Library/Developer/Xcode/DerivedData/gopapp-aidgtlievbwsjgdfdydbgdajgjgw/Build/Products/Debug-iphonesimulator/gopapp.app is not a valid path to an executable file.
User Info: {
  DVTErrorCreationDateKey = "2022-11-09 06:23:30 +0000";
}
--


System Information

macOS Version 12.5 (Build 21G72)
Xcode 14.1 (21534.1) (Build 14B47b)
Timestamp: 2022-11-09T11:53:30+05:30
Post not yet marked as solved Up vote post of iTapDev Down vote post of iTapDev
3.8k views
  • Have you solved this problem?

Add a Comment

Replies

OMG Xcode and its obscure errors that don't make any sense and no one knows how to fix them.

did anyone solve this?

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

+1

so, is there any solution here?

I too got this error when I reorganized, and renamed, project directories. Evidently I did not do that right, if there is a way to do it at all. If there is not, there should be one made. This is the error I got:

Executable Path is a Directory
Domain: DVTMachOErrorDomain
Code: 5
Recovery Suggestion: /Users/spflanze/Library/Developer/Xcode/DerivedData/Bonjour-Trial-iPhone-fotboannvetiniedscmjlgfnqmmh/Build/Products/Debug-iphonesimulator/Bonjour-trial-iPhone.app is not a valid path to an executable file.
User Info: {
    DVTErrorCreationDateKey = "2023-05-18 16:11:29 +0000";
}
--


System Information

macOS Version 13.3.1 (a) (Build 22E772610a)
Xcode 14.3 (21812) (Build 14E222b)
Timestamp: 2023-05-18T09:11:29-07:00

I do not know how to fix this project. I have come to the conclusion I will have to start again with a newly made project file, and copy my source code from the failed project into the new one.

  • Been down that road... Didn't work to solve the "Executable Path is a Directory"

Add a Comment

xcode 14.1 +1