Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

xcode 13 executable file not found

I've an error with xcode 13. When i try to run my app on a real device (arm64 architecture) i got the following error:

Executable Not Found

Domain: DVTMachOErrorDomain

Code: 5

Recovery Suggestion: /path/to/file/MyApp.app is not a valid path to an executable file. Please rebuild the project to ensure that all required executables are created. Check your project setting to ensure that a valida executable will be built.

has anyone ever had this problem? The build process finish without errors. Right now i've excluded x86_64 architecture from "Excluded Architectures" option and set the parameter "Architectures" to "Standard Architectures (arm64, armv7)".

like image 234
AndreaNic Avatar asked Feb 20 '26 22:02

AndreaNic


1 Answers

TARGET -> Build Settings, search 'VALID'.

Set VALID_ARCHS, add x86_64 if run with a simulator, else set arm64.

like image 172
Jack Will Avatar answered Feb 22 '26 10:02

Jack Will



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!