Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save steventroughtonsmith/62f0b14d5ef532a4be2e2529187c100d to your computer and use it in GitHub Desktop.
Save steventroughtonsmith/62f0b14d5ef532a4be2e2529187c100d to your computer and use it in GitHub Desktop.
iOS Simulator fullscreen enabler
call ((NSWindow *)[(NSArray *)[[NSApplication sharedApplication] windows] lastObject]).collectionBehavior = 1<<7|1<<8|1<<11
@yury
Copy link

yury commented Feb 8, 2017

How can I use this?

@jesuslg123
Copy link

To use it you have to attach to emulator process, for that:

  1. Disable System Integrity Protection: http://www.macworld.com/article/2986118/security/how-to-modify-system-integrity-protection-in-el-capitan.html
  2. Open terminal
  3. Attach to Simulator process (In terminal): lldb process attach -n Simulator
  4. On lldb terminal: call ((NSWindow *)[(NSArray *)[[NSApplication sharedApplication] windows] lastObject]).collectionBehavior = 1<<7|1<<8|1<<11
  5. On lldb terminal: cont

I have not tried it because I don't want to disable System Integrity Protection, but it should work if you do all the steps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment