Book Image

Xcode 6 Essentials

By : Jayant Varma
Book Image

Xcode 6 Essentials

By: Jayant Varma

Overview of this book

<p>Apple made their iOS devices easy to use and now they have extended that to their development tools such as Xcode. In Xcode, you can create native applications in the easiest way. Apple's new Xcode technology is making the development curve smoother with its easy-to-develop features and enhancements.</p> <p>Xcode can now write code with the performance-upgraded, brand new, innovative language called Swift, so you no longer need to rely on third-party frameworks to create applications.</p> <p>The book gives you a tour of the new features of Xcode 6. It introduces some important aspects such as the Swift language and its Playgrounds with visual live coding, creating interfaces, storyboards, controllers, frameworks, and live previews. Diving more into the subject, this books shows you how to debug your code, and how to build and test the application on a device or the simulator.</p>
Table of Contents (15 chapters)

Breakpoints


When you run your project, it opens up in the Simulator or the device (mainly in the simulator). You can stop it from running with the stop button. Clicking on the stop button returns you to your code. You can then update your code and rerun the project. Everything is fine but, if there was an error while the project was running, it goes back to Xcode and displays a source, either your own source code or some other code where the error occurred. However, instead of waiting for errors to break your code and provide you with an opportunity to debug it, you could set breakpoints. Breakpoints are, as the name suggests, points in your code that cause the running code to break (go to debugging mode) when the execution reaches that point.

One of the ways in which most developers try to resolve errors is by including statements that output some text and check what happened or is happening. This could work for some. However, these will have to be removed when you build your application...