Chapter 5: Working with Files, Frameworks, and Classes
Xcode projects include a list of constituent files. When you build a project, Xcode processes each file in turn. Source code files are compiled into binaries and linked together. Resource files are copied to the project’s output folder, also known as its bundle.
Each step in the process is known as a build phase. If your project has special requirements, you can customize the build phases or create custom build phases—for example, to compile source code in a specific sequence, allowing for dependencies. More typically, you can use the default build phases as they are.
You can define the files included in a project in two ways. The simple way is to use the file management features built into the Project navigator. For more advanced management, you can use the features introduced in Chapter 13 to customize Xcode’s default build phases. For simple apps, you can usually ignore this option, because the build phases “just work.”
Working with Files and Classes
The Project Navigator includes all the features you need for basic file and class management. The Navigator is easy to work with, but it’s worth emphasizing again that there is an indirect ...
Get Xcode 5 Developer Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.