Enable Compiler Optimization

In this section you’ll apply the final bit of polish to the application by turning on compiler optimization. You can choose from several levels of optimization; in general, the higher the optimization level, the longer compilation will take to complete, and the more difficult it will be to debug the application. Choose Developer Tools Help in Project Builder’s Help menu for more information about optimizing your application.

To enable optimization:

  1. In Project Builder, select the Build Settings pane of the Target options display as shown in Figure 14.5.

  2. Choose a deployment optimization level.

When you’re ready to build final candidate versions of your application, select Deployment from the Build Styles pane. This will enable the optimization level that you selected.

If you wish, select an installation location. This is the folder where the application will be copied when the build is complete. This makes testing the finished app outside of Project Builder simple.

Project Builder’s Build Settings window

Figure 14-5. Project Builder’s Build Settings window

Get Learning Cocoa 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.