How to close a simulator window without closing all of them? - xcode

I'm using the iOS simulator on a Mac connected to Visual Studio for debugging a Xamarin app. I launched it for an iPhone and then for an iPad. Then I wanted to close the iPhone window only but couldn’t find a way.

Use the File / Close Window (CMD-W) to close the current window (i.e. each Simulator is running in its own window).

As well as File/Close as shown by #SushiHangover, with Bezels turned off (Menu:Window/Show Device Bezels) the red 'Close' button on each window also closes just that simulator:
(You can use Hardware/Device from the menu to check which simulators are currently active.)

Related

Double Home button press does not work in iOS Simulator

If I try to display the multitasking menu with keyboard gestures in iOS Simulator 10.3 bundled with Xcode 8.3, it fails to respond; hovever, the single button press and the option from the menu still works. What can I do to get it to work again?
If you disconnect the hardware keyboard (⌘⌥K), it starts working again. This seems to be a bug with iOS Simulator 10.3.

Why isn't my Cocoa app visible while debugging?

I'm an experienced iOS developer trying to develop my first Cocoa app for OSX.
When the app hits my breakpoints, the app window is no longer visible. Why not? I see the app icon in the dock, but it doesn't become visible when I click on it.
Is there a way to change this or a workaround? I'd like to see the state of my app as I debug. I'm guessing I'm not the only one.
I'm using Xcode 6 beta 6.

When Running App in Simulator Xcode Gets Pushed to a Background Window

Whenever I build and run just this one particular app in XCode, the UI window of XCode gets pushed back underneath all existing running windows on OSX ( behind the browser and textedit etc...). This means I can't see the Xcode console debug outputs while playing with the app in the simulator. I feel like this could just be a quick setting in xcode or osx but I'm not sure why and how to fix this.
Use Spaces and develop with Xcode in its own virtual window. You will have just Xcode and Simulator wrestling for screen space then.
I normally have at least 5 windows open in Spaces:
Mail and Skype.
Web Browser
Xcode
Terminal/Finder/Odds and sods
Spare
Use Ctrl+Left and Ctrl+Right to switch windows.

iOS Simulator for iPad not working since upgrade to Xcode 4.3.2

A few days back I upgraded to Xcode 4.3.2 by downloading from the developer's portal and running the installation files. Since then, I am able to test apps on my devices and am also able to test them on the iOS simulator for iPhone without issues. However, the iPad simulator is not working well. A screenshot is attached.
The home button doesn't appear.
The status bar doesn't appear.
The simulator appears like a window with minimize and maximize icons (only the maximize icon is enabled) and also has a title with the version no.
Can anyone please advise, a screenshot of the simulator is present at the below location.
http://postimage.org/image/68pa1t7l9/
The Skins are missing from the iPad simulator, a solution is using the keyboard shortcuts, Cmd+Shift+H for Home, Cmd+1 / 2 / 3 to resize the window to fit on your screen to avoid scrollbars and such.

How do I add a device to Xcode devices?

I have an iPad and an iPhone. My iPhone is listed under devices in Xcode, and I'm trying to add my iPad.
Q: How do I add a device in Xcode?
Sometimes plugging in the device does not bring up the window.
In this case, from the Xcode menu, select Window and then Organizer.
Connect your device to your Mac with cable.
Open XCode
Window -> Devices & Simulators
Tap on your device
Tap to check on "Show as run destination"
Tap to check on "Connect via network"
Open Xcode. Plug in the device. Follow the prompts.
Open Xcode
Window -> Devices & Simulators
On the bottom left of the Devices window is a "+" Sign, Click on it.
Choose a connected device from the list to setup
click "Next"
when complete Click "Done"
Disconnect and Reconnect the Device
Plug your device directly into your mac, don't go through a USB hub as in my case. As soon as I went directly from iPhone to mac, it showed up.
open xcode and in the above option => "Window" click and select " Devices and simulators ". In the opened window you can see bottom left side "+" button .
click and add your device
I added my iPhone,which had the same issue, by changing my deployment target to match the OS on my phone, selecting my phone in the simulation bar (by the play stop links) and clicking the fix issue link.
Connect the device -> Open Xcode -> Click the top runner bar, select the connected device (you may need to scroll up).

Resources