Đang chuẩn bị liên kết để tải về tài liệu:
Lập trình Wrox Professional Xcode 3 cho Mac OS part 51

Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ

Nó đáng chú ý là chạy lệnh sạch không tương đương với việc xóa các nội dung của thư mục xây dựng của bạn, và là một trong những lý do đó Xcode cung cấp một lệnh để làm điều này. Có hai cạm bẫy tiềm năng để tránh ở đây: các lệnh có thể không xóa sạch tất cả các trung gian, và xóa thư mục xây dựng có thể có hậu quả ngoài ý muốn. | 380 CHAPTER 17 BUILDING PROJECTS i j It s worth noting that running the Clean command is not equivalent to deleting the contents of your build folder and is one reason that Xcode provides a command to do this. There are two potential pitfalls to avoid here the Clean command might not erase all intermediate items and deleting the build folder might have unintended consequences. The build folder is also the repository for other project support files possibly files from other projects. The support files are used to provide auto-completion data modeling predictive compilation and other intelligent features of Xcode. Problems can arise if you impulsively delete these support files while Xcode is running. Conversely if you issue a Clean command after removing a target the products of the target you deleted won t be removed because they are no longer part of the project. If you want to ensure that everything in your project is clean and do so in a way that won t confound Xcode follow these steps 1. Close the project. 2. Trash the project s build folder. 3. Re-open and build the project. Xcode automatically re-creates the build folder along with whatever support files it needs. The build folder is normally the folder named build inside the project folder unless you ve relocated it. The Build Locations section explains how to change or identify a project s build location. PARTIAL BUILDS There are a few commands for compiling a single file without committing a full build. These commands are Build Compile Command K Build Preprocess Build Show Assembly Code Each is enabled whenever you are editing or have selected a program source file that belongs to the project. Selecting one of these commands compiles the file using the current or only target that compiles that file. The Compile and Preprocess commands are quick ways of checking that this source file compiles without waiting for any other files or dependent targets to be built. The Preprocess command only runs the file .