Merry
Merry

Reputation: 460

Executable Path is a Directory issue when run the app in iOS xcode 14

I am facing the above issue. I have checked the mention path and found that It is not a directory, It is a valid executable path still facing the same issue.

Details are below:

Executable Path is a Directory
Domain: DVTMachOErrorDomain
Code: 5
Recovery Suggestion: /Users/apple/Library/Developer/Xcode/DerivedData/project name-hjamepccgssuuxegmglcegpnsvkp/Build/Products/Debug-iphoneos/projectname.app is not a valid path to an executable file.
User Info: {
    DVTErrorCreationDateKey = "2023-06-12 12:59:16 +0000";
}
--````

Upvotes: 2

Views: 1776

Answers (2)

Chandramani
Chandramani

Reputation: 889

I have the same issue with iOS Simulator on xcode-16 , but its run perfectly on device. Project/target settings are-

ENABLE_USER_SCRIPT_SANDBOXING to NO

VALID_ARCHS = arm64

EXCLUDED_ARCHS[config=Debug][sdk=iphonesimulator*] = arm64

If I change anything on last 2 , it gives errors

Upvotes: -1

Adrenalinevictim
Adrenalinevictim

Reputation: 81

I fixed it by adding x86_64 to VALID_ARCHS. Build Setting search "VALID_ARCHS",check the x86_64 is there or not, add and run.It worked with me

Upvotes: 2

Related Questions