How can I run iPhone simulator over full-screen(lion) Xcode 4.1?
I love to work with full-screen mode Xcode, but there's one inconvenience,
If I run iPhone simulator, it is shown in other s开发者_如何学Gopace.
Is there any way to run iPhone simulator over full-screen Xcode?
If then, I can work with happiness really!
There doesn't seem to be any way to do this. I think part of the idea of having a full-screen mode is that you cannot have any other windows open on top of the full-screen window.
Try opening Xcode in full-screen mode, then open the organizer window, and you'll see what I mean. The organizer opens in its own full-screen mode space.
Which makes sense, even though it's inconvenient in this case. I think if Apple were to give the iOS simulator its own full-screen mode, that would be nicer than just throwing it up on a desktop.
It seems like the ideal solution would be for Apple to integrate the iOS simulator into the Xcode debugging environment, similar to what they did with Interface Builder in Xcode 4.
As others point out, Apple doesn't allow to run two full screen apps one over the other one. However, you could put them next to each other like this which already is an enhancement (at least for me):
I use VS Code instead of Xcode but the logic is the same. All you have to do is just to allow iOS Simulator to run in Full Screen by running the following command in terminal:
defaults write com.apple.iphonesimulator AllowFullscreenMode -bool YES
To run simulators in full-screen mode, you need to enable fullscreen mode by executing the following command in your terminal:
defaults write com.apple.iphonesimulator AllowFullscreenMode -bool YES
*You need to restart the simulator in order to reflect the changes.
Just so you know, you can now do this as of Xcode 9. You need to enable the Internal menu in iOS Simulator.
To do this:
Create the folder
AppleInternal
in the root directory:sudo mkdir /AppleInternal
Restart all instances of the iOS Simulator.
- Observe the available Internal menu, navigate to
Internal | Allow Fullscreen Mode
and ensure this option is ticked.
After following these steps, you can enable fullscreen mode on the iOS simulator.
Information taken from: https://medium.com/flawless-app-stories/simulator-on-steroids-c12774ca6b
I recommend going with BetterSnapTool or something similar. Then you can easily size the window to take up the full screen without losing the use of a second monitor or the ability to see Xcode and the simulator as you're debugging.
This doesn't directly answer this question, but it's worth noting that under Xcode 4.6 at least the Organizer window will open on a second screen even if Xcode is running full-screen.
Also, I highly recommend Dash as a documentation viewer, as this can be set to 'HUD' window mode, and therefore be visible on a second monitor even when Xcode is full screen.
Still want to know how to do this with the Simulator
You can change the Debug Workflow in Xcode to "Xcode Always Behind". When you are coding you can use full screen mode, when you are debugging, you will see Xcode in the background.
Don't know if anyone is still looking, but the best way is to use Xcode behaviors. In the Running section, under Starts, select Exit Full Screen. Then under Completes, select Enter Full Screen. Works great!
All you need to do is (in your simulator) go to window/stay In Front
. Just like this
Hope this helps!
- Shut down your Mac,
- Boot into the Recovery Mode, When shut, start pressing CMD + R and while still pressing power up your machine and keep pressing the button combination until the Apple logo appears so that your Mac boots into the Recovery Mode.
- Click Utilites and choose Terminal
- Type
diskutil list
and identify the id of your disk named Macintosh HD, it should be something like/dev/disk2s1
- Now we need to mount it: type
diskutil mount /dev/[YOUR_DISK_ID]
. If successful, keep going with the next step. If not, you probably got a message regarding APFS that the disk needs to be unlocked, so typediskutil apfs unlockVolume /dev/[YOUR_DISK_ID]
- Finally you can create the required folder to enable hidden Xcode features: type
mkdir /Volumes/[YOUR_MAC_DRIVE_NAME]/AppleInternal
Now you can get out of the Recovery Mode and boot your Mac as usual. Open and run your project on simulator. Now you can see a new bar menu item named Internal. There is an option to set simulator to fullscreen.
In macOS Big Sur this is now supported, so you just go full screen with the Simulator window or drag it into split view as you would with any other window.
精彩评论