Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Because computer programming can be a complex process, it's easy to make mistakes. You can introduce errors to your code in a number of ways. Here are two:
Syntax errors are errors in the grammar of your code that make Xcode unable to interpret the code. Typographical mistakes in your code may lead to syntax errors in your project.
Runtime errors have nothing to do with the syntax of your code. Rather, the logic of your code contains errors that produce an application that doesn't function properly. These mistakes might be syntactically correct and still allow Xcode to compile and link your code into an application, yet produce unexpected or incorrect results. The application may run and even work as expected sometimes, but at some point, your application will do something wrong. A purple apple might be displayed instead of a red one in your graphics application, an enemy invader won't die when shot in your video game, or a miscalculation yields an incorrect numerical result in your spreadsheet application.