I pressed Build before I was done coding my class, and Xcode is showing me a bunch of red errors, which are obviously because I'm not done.
How do I get rid of the errors so they are not showing up in my coding window?
XCode 4:
^+⌘+M or Editor → Issues → (uncheck) Show All Issues
Older Versions:
⌥+⇧+⌘+H or View → Message Bubbles → Hide All
XCode 7: Preferences (⌘,) > General.
Under Issues uncheck "Show live issues"
double click on the bubble works too
On Xcode Preferences (⌘,) > Building, set "Never" to Show Message Bubbles during builds
Related
See image below, not sure if I did something or it's something new in Xcode 10. How to disable/hide it?
Go to Preferences > Source Control > General and uncheck the checkbox
No matter how large I make the window, this is all I can see of warnings:
How can I see the full text of the warning at the place it appears?
I could hover the mouse over the warning as it appears in the left pane and, after waiting long enough, a tooltip appears with the full text, but I find this very awkward... Is this the only way?
#### Here's a very handy trick: ####
1) Look in the issue navigator
2) Go to: xCode preferences > General > "Issue Navigator Detail" > now boost the dropdown to 10 lines.
Now you can see the whole message in the issue navigator!
The Issue Navigator is a compact representation. If you really want all the details, you can view the build transcript:
cmd+7
click on the top-most "Build $APP" section.
locate the warning or error
click the buttons on the right to see the full details of the step you are interested in
Double clicking on a message will then reveal the source location in the editor.
The easiest way to do it is right clicking the message in the "Issue Navigator" and choosing "Reveal in Log".
you can find, the warning/error list in the Warning tab section on the left
You can similarly hover over the warning itself. Even "unused variable" can be squished small enough so it can't fit (if you downsize the editor enough). Hover over the warning in place is the closest you'll come.
In Xcode 9.2 (at least), you can single click on the error / warning icon in the tooltip and it will expand.
I'm sure if you expand the left hand pane, it shows the full error. Ensure you are in the Warnings/Errors tab.
As far as I'm aware, this is the only way to do it.
For some reason when I build/run my code in Xcode, the terminal pane automatically disappears and I have to use Ctrl+Shift+C to get it back. This can be frustrating when you're compiling often. Does anyone know how to make it stay put?
Link's answer is for Xcode 3, I think.
For Xcode 4, open the Behaviors tab in Preferences.... and under "Build Starts" (make sure that's checked", enable the "Show" debugger with "Console View" section.
'Preferences' -> 'Behaviours' -> Under 'Running' -> 'Completes' -> Change 'If no output, hide debugger' to 'Show debugger'
go to xcode preferences, under building. Build Results Window , Open duing builds. set to Always
Every time I start Xcode it gives me a window where my recent projects supposedly should be. It would come in handy but unfortunately it's always empty.
Does it have anything to do with the location where I store my projects? I hope not.
Thanks for any help!
I would think it's because you could have your recent items set to 0 in System Preferences -> Appearance.
Update - If you are using Yosemite the correct path is System Preferences -> General -> Recent items (Thanks to #karim)
EDIT: Based on comments : Then Reboot
#Mellson answer is correct. But there is no menu in OS X Yosemite, System Preferences -> Appearance.
It should be, System Preferences -> General -> Recent items. Set e.g. 5 items.
or in command line,
defaults write com.apple.Xcode NSRecentDocumentsLimit 5
However, to my experience the first one works more correctly.
Restart your mac.
Earlier, I faced the same issue after I did Xcode 7.3 update. It showed me empty (Clear) Xcode File -> Open Recents menu.
You disabled the Welcome to Xcode screen. Press shift+command+1, and then reselect the checkbox as shown below. You can also start a new project from the File menu : New > Project… without the Welcome to Xcode screen.
I find myself having to go Window>Console each time, is there not a better way of handling it?
If you go to the Xcode preferences (COMMAND+COMMA), under "Debugging", you can click on the "On Start:" drop-down menu and select "Show Console & Debugger" to automatically show it.
I usually just use Cmd-shift-R. Works well enough for me.
You may also like the alternate "All-In-One" project arrangement - close out any open projects, go into XCode preferences, select the first tab (General). In the dropdown, select "All-In-One"
Now when you start the debugger, the debugger and stack review and console will all be gathered into one window.