Created
November 18, 2016 17:28
-
-
Save steventroughtonsmith/62f0b14d5ef532a4be2e2529187c100d to your computer and use it in GitHub Desktop.
iOS Simulator fullscreen enabler
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
call ((NSWindow *)[(NSArray *)[[NSApplication sharedApplication] windows] lastObject]).collectionBehavior = 1<<7|1<<8|1<<11 |
To use it you have to attach to emulator process, for that:
- Disable System Integrity Protection: http://www.macworld.com/article/2986118/security/how-to-modify-system-integrity-protection-in-el-capitan.html
- Open terminal
- Attach to Simulator process (In terminal): lldb process attach -n Simulator
- On lldb terminal: call ((NSWindow *)[(NSArray *)[[NSApplication sharedApplication] windows] lastObject]).collectionBehavior = 1<<7|1<<8|1<<11
- 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
How can I use this?