Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
DanielZanchi opened this issue Jan 30, 2021 · 10 comments

Comments

@DanielZanchi
Copy link

DanielZanchi commented Jan 30, 2021

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

@DanielZanchi
Copy link
Author

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

@AndreiApostoiu
Copy link

Still happening

@DanielZanchi
Copy link
Author

I solved this launching the simulator manually.

@AndreiApostoiu
Copy link

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.

@DanielZanchi
Copy link
Author

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

@AndreiApostoiu
Copy link

AndreiApostoiu commented Feb 1, 2021

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

@scopesWriter
Copy link

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

@BMinas
Copy link

BMinas commented Jun 3, 2022

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
Copy link

BMinas commented Jun 3, 2022

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

@chlebta
Copy link

chlebta commented Sep 5, 2023

Got the same issue any solutions ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants