Executable Path is a Directory

My build succeeded but I immediately got the following pop-up error:

Executable Path is a Directory Domain: DVTMachOErrorDomain Code: 5 Recovery Suggestion: /Users/myname/Library/Developer/Xcode/DerivedData/Myapp-dwsmxozkmjfflagroxubgbfvahwq/Build/Products/Debug-iphonesimulator/Myapp.app is not a valid path to an executable file. User Info: {DVTErrorCreationDateKey = "2025-04-17 11:54:27 +0000"}

Executable Path is a Directory Domain: DVTMachOErrorDomain Code: 5 Recovery Suggestion: /Users/myname/Library/Developer/Xcode/DerivedData/Myname-dwsmxozkmjfflagroxubgbfvahwq/Build/Products/Debug-iphonesimulator/Myname.app is not a valid path to an executable file.

System Information

macOS Version 15.5 (Build 24F5053f) Xcode 16.3 (23785) (Build 16E140)

<img width="483" alt="Screenshot 2025-04-17 at 6 51 00 AM" src="https://github.com/user-attachments/assets/7dea3cdc-4efa-4c85-a0df-4c70b33f3798" />

Applied and Failed Fixes:

  • Upgrade to MacOS 15.5 Beta
  • pod deintegrate/podinstall
  • uninstall and reinstall Xcode
  • Delete DerivedData folder
  • Edit info.plist Executable File name
Executable Path is a Directory
 
 
Q