How to solve XCode swipe gesture to go to previous / next file freeze editor? - xcode

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"

Related

Tabbing between Xcode project windows?

Basically I am supposed to press Command + the [`~] button that is above the Tab.
This question has been answered twice here:
Tabbing between Xcode projects?
and
Navigate Between Projects in XCode 4.0
But it just wont work for me, has anything changed in the xcode versions? or the way the mac behaves?
When I press this combination all I hear is the "invalid" sound.
I am using the newest Mac OS mountain lion.
Sorry if this belong to the super user stack overflow I just figured more Xcode users would be found here.
I can do the swipe on the mouse pad to bring the screen where I see all the active windows for the current application... but this is much slower than just tabbing between the 2 projects I'm usually working with.
Thanks
Do I infer from your comment about using the three finger swipe (for Mission Control) that the second window is not on the same desktop as the other windows? The command+` sequence only jumps between windows on the same desktop, not between different desktops (which is not to be confused with two physical monitors, which you can jump between, if you have multiple monitors hooked up to your computer).
The inability of command+` to not jump between desktops is a little curious, because command+tab, which jumps between apps, does go across desktops. If you want to jump between desktops, you can press control+1 or control+2 to jump to desktop 1 or 2, respectively. It should be noted, though, that while that might be a good alternative when trying to jump between your two desktops, though it admittedly selects the last active window in that other desktop, not necessarily a window from your current app in that other desktop. Also control+left and control+right let you jump between desktops, too.
This is a Mac OS "feature", not an Xcode issue, I believe. The command+` ability to jump between windows (but not windows across Mission Control desktops) is the same behavior across the Mac OS.
Update:
If this keyboard shortcut is not working at all, in any app, even within a single Mission Control desktop, then you don't need to worry about Xcode settings, but rather focus your attention on the keyboard settings:
You might want to look at your "Move focus to the next window" keyboard shortcut. There have been reported problems of people with international keyboards not getting this to work properly, but by clicking on (and thereby selecting) the command+` graphic, you can try using different keyboard shortcut, and see if that does it for you.
I have mountain lion as far as i know.
How about this?
control + down
You'll get the current application windows.
Below them there should be a horizontal list of recent projects for Xcode (both opened and closed). With arrows left or right choose the project (it should be highlighted with blue) and press enter.

Resizing debug bar freezes Xcode 4.3.3 on Retina MacBook Pro

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!

Rectangular cursor keypad in XCode

I've got interesting strange bug in Xcode. I can't find an information and can't fix it.
What happened. One day I came into office, and launched the project in XCode (I do not remember the sequence of actions), and instead of a standard keyboard cursor when editing text, I see a flashing white rectangle. The rectangle is similar to the cursor in the operating system DOS. I can not turn it off. The problem has plagued me for a second day.
Take screen shot
Buttons H, J, K, L perform cursor in the text. Backspace key does not work. Later, after some keystrokes, everything becomes normal, the cursor becomes a standard. After a few seconds, the cursor becomes black again, and everything continues to this scheme.
Additional information:
Mac mini 2011, OS Mac OSX Lion 10.7.3, XCode 4.3;
The problem only occurs in XCode;
The problem occurs with all projects;
I did not change system settings or XCode;
This is not a text selection. If you hold the left mouse button, the rectangle appears on the left of the cursor, in the normal state, the cursor is displayed on the right;
XCode reinstalled several times, with reboots the computer;
Delete all data in the folder ~ Library/Developer/ and ~/System/Library/Developer;
Connect other mouse and keyboard;
I was looking for information on google and stackoverflow.
Thank you for your answer!
I solved this problem.
Deleted XCode. Then I used the program "Find Any File" to search for files containing the title of "xcode" and deleted all files that have been found. Then reinstalled XCode and the problem disappeared.
I tried to find where the settings are XCode but did not find such information, so delete all files containing "xcode" in the title.
This happened to me and I found that I had installed xVim and hadn't noticed it since the changed don't take effect until after restarting Xcode. I removed the plugin in ~/Library/Application Support/Developer/Shared/Xcode/Plug-ins to fix the issue.

Instruments 4.1 unresponsive to projects launched from Xcode 4.1 until pressing Cmd-Tab

If I open Instruments and select a standard application (e.g. Mail or MS Word) it has no issue.
If I am in Xcode and I go to Product > Profile (or press Cmd + I), it launches Instruments, allows me to select a template, and loads the standard screen. Then the downward arrow starts tracing to the right as it should, and the iOS simulator launches the program. However, nothing is plotted in Instruments. It shows no changes to anything no matter what the app is doing. I can't click anything in Instruments: no menu's, can't stop recording, can't open tabs, etc.
I randomly discovered that if I hit Cmd + Tab, Instruments will start behaving normally. This seems really strange to me. Either it's a bug or it's a hole in my knowledge about how to operate Instruments.
Strange bug is fixed in XCode 4.2!
The problem was the hidden password dialog, so sometime it works and sometimes not.
One of possible solutions was:
Run Instruments
Cmd Tab to Xcode covering the instruments. Cycle and hide messages until password dialog is found.
Close Xcode.
PS: I know it is a few years to late for the answer, I was just looking for unanswered questions. Just check as answered - > it's good for both of us. )

Xcode window positions when switching from dual to single monitor

When I'm working at home I plug my MacBook in to my 20" monitor as a second (right side) monitor. I do all my editing in Xcode on the larger monitor, and leave the menu bar, debugging and documentation on the laptop's monitor.
The problem is when I disconnect from the second monitor and want to work on code in "laptop" mode. Now, whenever I open a file for editing, it shows up almost entirely off the screen and I have to drag it over to edit it. I understand (sort of) why this is happening, since I last had it open in a different monitor. What I'd like to do is reset the window positions in Xcode so the edit windows show up completely on the laptop monitor. Any ideas on how to do this?
I'd even be willing to nuke entries out of the preferences (or set up an applescript to do it) but the xcode plist is inscrutable to me.
Right click the project in finder, select show package contents, and delete the two username.* files. Its not automated... but it works.
Additionally if your using some kind of version control system you probably want to add username.* to your ignore pattern.

Resources