If you do, you may need to tell test applications where to find your framework.As you add major versions to the framework, you also need to be able to maintain your projects.
The following sections show you how perform both of these tasks. Creating Your Framework From Xcode, choose File New Project to create your project. Follow the prompts to select the type of framework you want and where you want to put your project directory. The default templates that come with Xcode let you specify whether you want to create a Carbon or Cocoa framework. The type of framework you choose determines which default files are generated for you. If you do not want to include Carbon or Cocoa headers in your framework, you can remove any references to them after you create your project. These options make it easier to distribute your framework to customers and guarantee its compatibility after future development cycles. Table 1 lists some of the options you should set for your framework. Table 1 Framework configuration options Option Description Framework identifier A Java-style package identifier that uniquely identifies the framework to the system. To set this option in Xcode 2.4, open an inspector window for your framework target, select the Properties tab, and modify the Identifier field. Framework version The current major revision of the framework. See Major Versions for more information. In Xcode 2.4, set this value for your framework target using the Framework Version build setting. Current version The current revision of the framework. In Xcode 2.4, set this value for your framework target using the Current Library Version build setting. Compatibility version The most recent revision of the framework that includes changes to the public interfaces. Exported symbols The list of framework symbols you want to export to other programs. In Xcode 2.4, specify a file containing your exported symbols for your framework target using the Exported Symbols File build settings. To specify a file containing the symbols to hide, use the Unexported Symbols File build setting instead. Installation path The directory name in which your framework should ultimately be installed. In Xcode 2.4, set this value for your framework target using the Installation Directory build setting. See Installing Your Framework for a list of standard locations. Preferred address For frameworks being deployed in OS X v10.3.9 and earlier, specify the preferred memory address to use for prebinding operations. This value is not needed when deploying a framework in 10.4 and later. Make A Framework For Os X How To Set TheSee Frameworks and Prebinding for information on how to set the preferred address of a framework. Testing Your Framework in Place When you build a framework, Xcode places it in the build subdirectory of your project directory by default. Although you can tell Xcode to install your framework in its final deployment location, during development you may want to leave it where it is.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2020
Categories |