Of course, rare is the project that is flawless from the start. For most applications you write, Xcode is likely to catch some errors when you first build them. Thankfully, Xcode offers tools to help you catch those bugs and move on.
To get an idea of the error-checking features of Xcode, introduce a mistake into the code and click Build again.
You can now see that the left column of your code contains one or more error indicators.
While the error indicator helps you understand the location of the error, you may want to examine the nature of the problem.
In the Groups & Files list, disclose the Errors and Warnings group if it’s not already disclosed. Xcode lists the files that contain build errors.
Select the file in the Errors and Warnings group or open it in an editor window to display the error. Xcode displays information about the error in the detail view, as shown in Figure 6-1.
Fix the error in the code and build the application again. The Errors and Warnings group clears, and the status bar indicates that the build is successful.
Last updated: 2007-10-31