How to get device console in Xcode6? - ios8

I am exploring iOS8 beta. I couldn't find the device console logs in "Window->Devices->MyiPad". Can someone tell me how I can get the console logs?

You are on the right way. Just click on the small arrows down (see the image)and it will show you the Logs.

Here's an updated image of josef's answer with Xcode 7.3.1
1) Plug in the device and open Xcode
2) Choose Window -> Devices from the menu bar
3) Under the DEVICES section in the left column, choose the device
4) To see the device console, click the up-triangle at the bottom left of the right hand panel
5) Click the down arrow on the bottom right to save the console as a file

There's a small arrow pointing down under 'Installed Apps'. They've made it almost impossible to find on your own...

Xcode 9
Window -> Devices and Simulators

Related

How do i make the simulator open onto the same screen as xcode?

I was wondering how to open the simulator on the same screen as Xcode. I've seen it done on the IOS bootcamp on Udemy, when simulator is opened it pops up on the same screen as Xcode as shown here does anyone know how to achieve this result?
Ive managed already to get the simulator to be in the same screen but its next to it in a different window like so.
Hello and welcome to Stack Overflow! Looking over your desired result and the screenshot labeled as undesirable, it appears that you only need to ensure the Simulator is the active element on your screen and select the Window menu at the top of the screen and select Stay on Top.

My library pane is missing, how to get it back

I have already searched in the shortcuts in the Xcode preferences but I couldn't find a way to get it back.
My current interface:
Xcode 11 and 12: Click the "plus" button at the top, left of the "Show/Hide Code Review" button. Alternatively, use "View > Show Library" or hit Shift-Cmd-L.
Xcode 10: Click the "square in a circle" button at the top, left of the "show standard editor" button. Alternatively, use "View > Libraries > Show Library" or hit Shift-Cmd-L.
XCode 11
Click the button highlight in the image.
Check to see if it is buried under some other window - particularly if you've dragged xcode to a different monitor. The library shows up on the monitor that xcode was opened onto, and it won't appear atop something like a full screen video playback.

How can I get full-resolution screenshots when the Simulator's "Pixel Accurate" option is disabled?

On Xcode 9.1 the Pixel Accurate option is disabled and grayed out under the Window menu.
How can I take App Store screenshots without this option?
The original answer is wrong!
Russ from the Apple Simulator team says:
To take app store screenshots uncheck the "Optimize rendering for
Window Scale" option in the Debug menu. I recommend turning this back
on normally as it improves rendering performance. Double-clicking does
not make the device use native resolution, that's just an accident due
to the size of device you tested with and the size of your screen.
==========
ORIGINAL ANSWER (DOES NOT WORK RELIABLY):
Make sure Window -> Show Device Bezels is unchecked.
Double click the simulator's toolbar (the top bar listing the device and OS).
Note - sometimes, double-clicking the toolbar will just minimize the window to the dock. Alternately, simply click OSX menubar Window->Zoom.
Hello happy days, the simulator resizes and provides the right resolution for App Store screenshots.
You could set the simulator to landscape mode by clicking ⌘ + → first, then you could click ⌘ + 2 to select Pixel Accurate option, don't forget set simulator to portrait mode by clicking ⌘ + ← :)
As of Xcode 12 we always enable all of the options.
In previous releases they were not enabled unless your screen was large enough to display the device at the full resolution without running off the edges.
I found the menu is only enabled when your screen resolution is able to support pixel accurate display( so as physical size). This is annoying because making a screenshot always generates a picture at the current size of the simulator on Xcode 9.1. It requires to the simulator to display in the pixel-accurate mode for qualified screenshots. For iPad Pro(12.9-in, 2732 x 2048 pixels), the mode is only available in landscape when my MacBook Pro is set to "More Space"- with actual resolution at 3840x2400.
Since the computer I own (2017 MacBook Air) don't support landscape mode and resolution is 1440x1000 I'm stuck. In Xcode 9.0 you could still select 100% scaling and scroll down in the simulator. That's no longe possible.
I can understand if apple drops support for 2005 computers, but not 1 month old ones :S
So the only option I could find is to buy a extra screen! BUT for just making a screenshot you can still press CMD+S and it will make a native resolution one!
In case this helps anyone else, the issue for me was my second monitor. I tried all of the solutions here, but none of them worked until i unplugged my second display. I work on a 15" 2016 MBP and the second display is a 2560×1440 QHD Asus monitor connected by HDMI to a USB-C hub.
Since I only needed to take a screenshot, I found out the quick fix was to go to "Hardware" > "Rotate Left"/"Rotate Right" and "Pixel/Point accurate" becomes available.
Quick fix:
Hardware > Device > Manage Devices > Delete the iPhone that you're having trouble with (from the sidebar).
[Remember to "Close Window" on Simulator and exit Simulator before deleting]
Add it again from the "+" button on the bottom left.
Restart Simulator and launch the device again.
Done.

How do I tap a tab in tvOS simulator?

I created a sample tvOS app in Xcode and selected "tabbed application".
Now I have a First, Second buttons at the top that looks like the equivilant of a tab bar. The simulator remote says "Press Option to touch". Pressing Option and clicking on the remote does nothing.
How do I change tabs?
There are a couple of ways to interact with the tvOS Simulator.
First is the via the simulator's Apple TV Remote. This can be enabled via the simulator's menu item Hardware->Show Apple TV Remote:
While holding the Option key on the Mac's keyboard, move the mouse cursor around the Apple TV Remote (specifically above the "Hold Option to touch" text).
Another way to interact with the tvOS Simulator is via the Mac's keyboard. This can be enabled via the simulator's menu item Hardware->Keyboard->Connect Hardware Keyboard. Once enabled, the arrow keys are able to change focus in the simulator.
Besides using Apple TV Remote, you can also use keyboard → and ← to select different tabs.
For Xcode 12.X and beyond you should go to Window -> Show Apple Tv Remote or use Shift + Command + R.
Image

How to get Xcode to show its startup screen again?

When I started Xcode I always got a screen that let me choose which project to open, or to start a new project, or a few other options. A few days ago I noticed it had a checkbox that was prechecked that said something like "Always show this screen on startup". Unfortunately, I unchecked it. I thought it would just reopen the last project I was editing but that's not what it does. Now Xcode just launches without opening any window at all so you have to go into its File menu, choose open, and find your project. I want to go back to the previous (default) behavior but I can't find any way to go back.
Does anyone know how to get that opening screen to show again? (It's not in preferences.)
From Xcode 4 and above versions, it's "Window" -> "Welcome to Xcode (⇧⌘1)".
On the older Xcode 3, it's "Help" -> "Welcome to Xcode".
If you want to see the window every time Xcode starts, please tick "Show this window when Xcode launches":
Beware that you need to hover over this window to see this checkbox.
Step 1
Start Xcode, go to the top navigation bar called Window, click on Welcome to Xcode it will show you the project screen:
Step 2
Look at the bottom of the welcome screen, there will be "show this window when Xcode launches", tick it:

Resources