ControlRoom icon indicating copy to clipboard operation
ControlRoom copied to clipboard

Unknown binary with magic ... at /Applications/Xcode.app/Contents/Developer/usr/bin/simctl

Open DanielZanchi opened this issue 4 years ago • 11 comments

What am I missing? I can't seem to "boot" the simulator image

DanielZanchi avatar Jan 30 '21 09:01 DanielZanchi

I started the simulator manually and it's working now..

DanielZanchi avatar Jan 30 '21 09:01 DanielZanchi

Still happening

AndreiApostoiu avatar Feb 01 '21 10:02 AndreiApostoiu

I solved this launching the simulator manually.

DanielZanchi avatar Feb 01 '21 10:02 DanielZanchi

I've tried this approach too and it's still crashing. Repro steps: Xcode -> Open Developer Tool -> Simulator and then after I'm running the Release version of Control Room and then tap on App tab, the Control Room app crashes with the same output: Unknown binary with magic

I solved this launching the simulator manually.

AndreiApostoiu avatar Feb 01 '21 10:02 AndreiApostoiu

I've tried this approach too and it's still crashing. Repro steps: Xcode -> Open Developer Tool -> Simulator and then after I'm running the Release version of Control Room and then tap on App tab, the Control Room app crashes with the same output: Unknown binary with magic

I solved this launching the simulator manually.

What do you have here: image

DanielZanchi avatar Feb 01 '21 10:02 DanielZanchi

Same selections. Also I'm running on Big Sur 11.0.1

AndreiApostoiu avatar Feb 01 '21 10:02 AndreiApostoiu

actually iam facing the same crash even after booting simulator manually, any help ?

scopesWriter avatar Mar 29 '21 12:03 scopesWriter

I have the same problem running from xcode debug. macOS 12.3.1 xcode 13.4. The key piece of information is the magic 0x622f2123, which is the value for a shell script. And indeed, at /Applications/Xcode.app/Contents/Developer/usr/bin we have a file simctl which is a bash file. It invokes /Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/Resources/bin/simctl which is the real binary.

I verified that /usr/bin/xcrun simctl actually invokes the bash file, which then calls the binary.

BMinas avatar Jun 03 '22 02:06 BMinas

I reproduced the problem with a small (very small) demonstration program. I posted at Stack Overflow: executing xcrun from swift command line program

BMinas avatar Jun 03 '22 04:06 BMinas

Got the same issue any solutions ?

chlebta avatar Sep 05 '23 13:09 chlebta