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

Bạn có thể lo lắng vào thời điểm này là một dự án phức tạp với năm mục tiêu và bốn xây dựng cấu hình sẽ có một số lượng không thể quản lý xây dựng các thiết lập - ít nhất là 25 bộ hoàn chỉnh xây dựng các thiết lập, trong tất cả. Đừng lo lắng. Xcode cung cấp một số công cụ để hình dung xây dựng các thiết lập như một toàn thể, biên tập xây dựng thiết lập trong cấu hình cùng một lúc, và di chuyển xây dựng các thiết lập giữa các lớp | 402 CHAPTER 17 BUILDING PROJECTS You might be worried at this point that a complex project with five targets and four build configurations would have an unmanageable number of build settings at least 25 complete sets of build settings in all. Don t worry. Xcode provides several tools for visualizing build settings as a whole editing build settings in multiple configurations at once and moving build settings between layers. Each of these are covered shortly. The most common use of build configurations is to alter the compiler and linking options when producing an application for different purposes. For debugging the application needs to be compiled with certain code optimizations turned off code optimizations can interfere with sourcelevel debugging and with debug information included. Conversely the released version of your application needs to be fully optimized but does not need to include any debugger data the end user doesn t need it and it significantly increases the size of the application. You may also need to produce an application that s between these two extremes for performance testing. For that you ll want an application that is fully optimized just like the final version but also includes all of the information used by the debugger to identify functions and variables. This use of build configurations is so common that these are exactly the build configurations provided by Xcode templates. All Xcode project templates include two configurations named Debug and Release. The default values for the build configurations set the compiler and linking options to those you would typically want. In the Debug configuration optimization is turned off debugging symbols are enabled as are useful debugging features like Fix and Continue. The Release configuration has just the opposite settings. Optimization and normal linking are turned on and all of the debugging aides are disabled. EDITING BUILD SETTINGS Now that you understand the hierarchy of build settings and .