This eBook includes the following formats, accessible from your Account page after purchase:
EPUB The open industry format known for its reflowable content and usability on supported mobile devices.
MOBI The eBook format compatible with the Amazon Kindle and Amazon Kindle applications.
PDF The popular standard, used most often with the free Adobe® Reader® software.
This eBook requires no passwords or activation to read. We customize your eBook by discreetly watermarking it with your name, making it uniquely yours.
Use Xcode 6 to Craft Outstanding iOS and OS X Apps!
Xcode 6 Start to Finish will help you use Apple’s Xcode 6 tools to improve productivity, write great code, and leverage the newest iOS 8 and OS X Yosemite features, including Apple’s new Swift programming language.
Drawing on more than thirty years of experience developing for Apple platforms, and helping others do so, Fritz Anderson presents a complete best-practice workflow that reflects Xcode’s latest innovations. Through three full, sample projects, you’ll learn to integrate testing, source control, and other key skills into a high-efficiency process that works. And all sample code has been completely written in Swift, with figures and descriptions that reflect Xcode’s radically new interface.
This is the only Xcode 6 book focused on deep mastery of the tools you’ll be living with every day. Anderson reveals better ways to storyboard, instrument, build, and compile code, and helps you apply new features, ranging from Interface Builder Live Rendering to View Debugging and XCTest Performance Testing. By the time you’re finished, you’ll have all the Xcode 6 skills you need in order to develop truly exceptional software.
Register your book at informit.com/register for access to this title’s downloadable code.
Download the sample pages (includes Chapter 3 and Index)
About the Author xxv
How This Book Is Organized 1
About Versions 4
About the Code 4
Part I: First Steps 7
Chapter 1: Getting Xcode 9
Before You Begin 9
Installing Xcode 10
Removing Xcode 11
Apple Developer Programs 12
Downloading Xcode 13
Additional Downloads 14
Chapter 2: Kicking the Tires 17
Starting Xcode 17
Hello World 19
Getting Rid of It 24
Chapter 3: Simple Workflow and Passive Debugging 25
Creating the Project 25
Simple Debugging 32
Chapter 4: Active Debugging 35
A Simple Test Case 35
Going Active 35
Fixing the Problem 39
Chapter 5: Compilation 45
Dynamic Loading 52
Xcode and Clang 52
Compiler Products 62
Chapter 6: Adding a Library Target 69
Adding a Target 69
Target Membership 71
A Dependent Target 74
Chapter 7: Version Control 79
Taking Control 80
The State of Your Files 82
Your First Commit 84
Working with Remote Repositories 84
Merges and Conflicts 89
The Version Editor 99
Part II: The Life Cycle of an iOS Application 105
Chapter 8: Starting an iOS Application 107
Planning the App 107
Starting a New iOS Project 110
What’s in the Project 112
Chapter 9: An iOS Application: Model 117
Implementing the Model 117
Managed-Object Classes 123
Specializing the Core Data Classes 132
Making the Model Easier to Debug 139
Chapter 10: An iOS Application: Controller 141
Renaming Symbols in Objective-C 141