Tio
Tio

Reputation: 19

Cannot execute binary file on xcode

I cannot run build with error:

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: cannot execute binary file Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool failed with exit code 126

enter image description here

Upvotes: 0

Views: 1216

Answers (1)

MRizwan33
MRizwan33

Reputation: 2741

In my case swift development snapshot was selected instead of xcode 9.2. here are the steps and image.

xcode on screen and click on xcode top menu bar. Than go to toolchains option and check on xcode 9.2. thats it. enter image description here

Note: If no toolchain found in your xcode than download from Here and install it. (after installation restart xcode). Happy Coding.

Upvotes: 0

Related Questions