tailieunhanh - Lập trình Wrox Professional Xcode 3 cho Mac OS part 56

Tuỳ chỉnh XÂY DỰNG Sử dụng xây dựng các thiết lập, và một vài chuyên Xcode cài đặt, có thể tùy chỉnh hàng trăm chi tiết về xây dựng của bạn. Có hàng trăm xây dựng thiết lập - và số lượng phát triển với mỗi bản phát hành của Xcode. Tìm việc xây dựng thiết lập bạn đang tìm kiếm đôi khi có thể là một thách thức. | 414 CHAPTER 17 BUILDING PROJECTS FIGURE 17-32 CUSTOMIZING THE BUILD Using build settings and a few specialized Xcode settings it s possible to customize hundreds of details about your build. There are literally hundreds of build settings and the number grows with each release of Xcode. Finding the build setting you re looking for can sometimes be a challenge. The build settings tab displays a description of the selected build setting and is the first place to look when you re hunting for a build setting or wondering what a build setting does. You can also set the search field to search the descriptions of build settings which might also help you find what you re looking for. The next few sections cover many common ways of customizing your build process and products. A few are special features of the Xcode application but most are configured using build settings. The later sections cover some of the more important build settings especially ones that control the build process itself and ones that might have non-obvious relationships. This book can t possibly explain them all. The following sections hit the highlights and point you toward the documentation for the rest. Per-File Compiler Flags The per-file compiler flags setting is a special place where the compilation of a single source file can be modified. These are literal command-line arguments set for a particular source file and target and passed to the compiler only when that source file is compiled. Each source file has a separate compiler flags setting for each target in the project so you can specify one compiler flag when the file is being compiled for one target and a different compiler flag when it is compiled for another. There are no templates or documentation for these options in Xcode. You will need to consult the compiler s documentation to compose your argument list correctly. Open the Info window for a source file. If the source belongs to the active target a Build tab appears in the Info window .