Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
iOS Simulator fullscreen enabler
call ((NSWindow *)[(NSArray *)[[NSApplication sharedApplication] windows] lastObject]).collectionBehavior = 1<<7|1<<8|1<<11
@yury

This comment has been minimized.

Copy link

commented Feb 8, 2017

How can I use this?

@jesuslg123

This comment has been minimized.

Copy link

commented Apr 26, 2017

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
You can’t perform that action at this time.