View The Console Window
Menu > Run > Console
Write string to the console
NSLog(@"hi");
(more...)
Ensuring your application has symbols for debugging any crash reports
Always keep the console window open when running (Menu > Run > Console)
Objective C is a dynamic typed language so the compiler doesn’t know if functions you use are actually available at compile time, but an error will be generated when it runs. ALWAYS have the console window open so you see any errors occurring.
Using Menu > Build > Build & Analyze will often show up issues that may be causing bugs
To be able to debug on a device that is already running the release version of an app you now want to develop further and run on it you can do this to avoid the release version being affected: