Apple Developer Connection
Member Login Log In | Not a Member? Contact ADC

< Previous PageNext Page > Hide TOC

Correct Build Errors

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.

  1. 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.

  2. 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.

  3. 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.


    Figure 6-1  Identifying build errors

    Identifying build errors
  4. 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.



< Previous PageNext Page > Hide TOC


Last updated: 2007-10-31




Did this document help you?
Yes: Tell us what works for you.

It’s good, but: Report typos, inaccuracies, and so forth.

It wasn’t helpful: Tell us what would have helped.
Get information on Apple products.
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Copyright © 2007 Apple Inc.
All rights reserved. | Terms of use | Privacy Notice