Resizing debug bar freezes Xcode 4.3.3 on Retina MacBook Pro - xcode

I have been using Xcode 4.3.3 for a few days on my retina mac (Lion, of course). At work I always have my Xcode window on a Cinema Display and have never experienced any problems. However, I threw an Xcode window onto the pro's display and tried to resize the debug bar - Xcode hangs. 99-100% CPU and the cursor turns into the rainbow wheel of death. I tried deleting everything in ~/Library/Developer/Xcode/DerivedData because that has cleared up all of my issues with Xcode in the past, but that's a no go. I want to do some iOS development when I am not at work, but this makes it pretty hard to do since I don't have a cinema display or other monitor at home.
Here's the sample from the Activity Monitor:
http://pastebin.com/2Suz1b9v

I figured it out. By default, Apple opens Xcode in a resolution optimized for the Retina Display. You can force XCode (or any other application) to open with a lower resolution by doing the following:
Quit the application if it is currently open.
In the Finder, choose Applications from the Go menu.
In the Applications folder that opens, click the application's icon so it is highlighted.
Choose Get Info from the File menu.
Place a checkmark next to "Open in Low Resolution" to enable Low Resolution mode.
Close the window and double click the Application to reopen it.
And it works!

Related

Visual Studio Code can't open a folder on MacOS

so I wanted to switch between projects in VSC on my MacBook Air (macOS Monterey) so, like usual, I went for a top bar, selected File, chose Open Folder. But then the Finder window that was prompted stopped responding for my touchpad clicks. It does respond when I try to crawl through folders with my keyboard but at the end I can't choose the folder to open. Any advice?
I'm also experiencing the same issue on my M1 Mac on OS Monterey 20.6 in other applications as well as VS Code. The only solution I found is the workaround posted here: https://discussions.apple.com/thread/253580300
Simply adjust the Finder window size by hovering the mouse over the corner/edge of the window then click & drag. This then makes the Finder window responsive to mouse clicks.

When I switch desktops in macOS with multiple displays, why is focus switching to another unexpected application (iTerm2 or VSCode in my case)?

I have a MacBook Pro running Catalina with an additional display. I typically have my development-related apps on one display (iTerm2, VSCode, etc.) and everything else on the other display (Chrome, Slack, etc.)
Sometimes (not all the time), when I switch desktops (Ctrl+left or Ctrl+right), access an app using Spotlight (Cmd+space and type), or use Cmd+Tab to switch applications, the focus would suddenly jump to iTerm2 or VSCode. This happens even if iTerm2 or VSCode isn't currently showing; for example, if I try to switch to Chrome on display 1 and iTerm2 is on a different hidden desktop on display 2, Chrome would appear on display 1 and then display 2 would show the desktop containing iTerm2 sliding into view (along with focusing iTerm2).
This severely impacts workflow, since this behavior is unpredictable and involves a lot of typing in the wrong application and reaching for the mouse. What is causing this behavior?
I found that it only happens when I have windows of the same app on both screens.
Say I switch desktop on a screen 1 and Chrome should become active there, then if I also have a Chrome window on my screen 2, it's actually the one on screen 2 that becomes active. Very frustrating..
This bug still exists in macOS Big Sur 11.4. Another symptom is that, after the erroneous focusing happens, manually switching to a space with no windows in it will leave that focused app focused, after briefly focusing Finder, rather than just focusing Finder. It's this last erroneous focusing that causes the space-switching.
Workaround: when it happens, invoke "Show All" from the menu bar (I have a keyboard shortcut for this). Note that switching to an empty space now does a single focusing of Finder, and no further space-switching happens.

My App icon is greyed out on iPad Dock recent icons

On iOS 11 the icon on the dock is grayed out and not clickable after the install when I first open it. If I delete the icon from recent on iPad dock and open the app again the icon appears to be fine.
The icon is fine on home screen but grayed out on the recent dock?
It happens when every time no matter the source of installation, Xcode, app store or test-flight
Rebooting the device (either between uninstall and reinstall, or while the icon is gray) fixes the icon
I had the exact same issue. Here is my StackOverflow post's answer: What causes iOS 11 iPad recent apps dock icon to be grayed out?
I feel that this is an iOS 11 bug, as I was able to replicate the behavior with the Google Play Music app.
I have also experienced some other weird glitches related to the "Recent apps" section of the dock on iOS 11 on iPad. Sometimes the hand-off safari icon will be positioned half outside of the dock. Another time an app icon was greyed out and still present after I had deleted the app, I was able to grab the icon and drop it on my home screen (only a reboot removed the icon as long pressing on the icon made it jiggle, but no "X" appeared).
Here is the screenshot that I have posted in my answer showing that Google Play Music's app had the same issue.

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 to solve XCode swipe gesture to go to previous / next file freeze editor?

Since this morning I'm facing a really annoying bug in XCode 5 on Mavericks :
I'm heavily used to swipe from left to right with two fingers on the MacBook trackpad to go to the XCode editor previous / next files.
BUT, now, doing this totally freeze the editor after having just moved for something like 5 px.
After that I have to close XCode and reopen it to make the editor work again.
Pressing the previous / next button works wel since it doesn't trigger this buggy animation.
Did anyone had this problem before or has any clue to solve it ?
In fact this problem is affecting other swipe gesture like the previous / next swipe in Safari.
I found a way to fix this on Apple Support Forum, by resetting the NVRAM.
Shut down your Mac.
Locate the following keys on the keyboard: cmd ⌘alt ⌥PR. You will need to hold these keys down simultaneously in next step.
Turn on the computer and immediately press and hold the cmd ⌘alt ⌥PR keys before the gray screen appears.
Hold the keys down until the computer restarts and you hear the startup sound for the second time.
Release the keys.
When your Mac finishes starting up, you might want to open System Preferences and adjust settings that have been reset, such as sound volume, display resolution, startup disk selection, or time zone.
Apple support: https://support.apple.com/en-us/HT204063
For me, in Xcode 8.3.3 and Xcode 9, it started working after
Go to the system preferences
Go to Trackpad
Select and deselect "Tap to click"

Resources