Table of Contents
Acknowledgments xxiii
About the Author xxv
Introduction 1
How This Book Is Organized 1
About Versions 4
About the Code 4
Conventions 5
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
Summary 15
Chapter 2: Kicking the Tires 17
Starting Xcode 17
Hello World 19
Getting Rid of It 24
Summary 24
Chapter 3: Simple Workflow and Passive Debugging 25
Creating the Project 25
Building 29
Running 30
Simple Debugging 32
Summary 34
Chapter 4: Active Debugging 35
A Simple Test Case 35
Going Active 35
Fixing the Problem 39
Summary 43
Chapter 5: Compilation 45
Compiling 45
Dynamic Loading 52
Xcode and Clang 52
Swift 57
Compiler Products 62
Summary 66
Chapter 6: Adding a Library Target 69
Adding a Target 69
Target Membership 71
A Dependent Target 74
Summary 77
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
Branching 102
Summary 104
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
Summary 114
Chapter 9: An iOS Application: Model 117
Implementing the Model 117
Managed-Object Classes 123
Preparation 128
Specializing the Core Data Classes 132
Making the Model Easier to Debug 139
Summary 139
Chapter 10: An iOS Application: Controller 141
Renaming Symbols in Objective-C 141