On Nov 1, 2008, at 3:22 AM, John Love wrote: I know that my knowledge of Frameworks is dismal; however, I desperately need help.
I have read Apple's Framework Programming Guide and several posted web sites which are based on the old XCODE 2, that is to say, the old dialog presented with CMD-I, rather than the XCODE 3 expanded CMD-I dialog.
Within my Groups and Files, the "Targets" shows "Copy Headers (20)" and "Compile Sources (19)" as set up when I created the Cocoa Framework from scratch ... and everything is there as it should be. However, the built "Products/myframework.framework" shows nothing when clicking the triangle and when double-clicked displays only Listing 1 (p. 14) of Apple's Framework Programming Guide", rather than Listing 3 (pg. 15).
I have CTRL-clicked on appscript.framework and added new Build Phase = Copy files .. but the "Copy Files" following "Link Binary with Libraries" in the clip shows empty .. and I cannot figure out how to add files to it.
I really need some help here.
Build Phases are steps in building your target. You can add them to a target. Different types of build phases process different types of files in the target:
- Compile Sources runs the .c, .cp, .m, .mm files through the compiler - Link Libraries and Frameworks links together compiled object files with external libraries and frameworks - Copy Bundle Resources puts .tiff, .png, .rsrc, and other data files into the Resources folder - Copy Headers copies the header files into the resulting framework
If you're not seeing the header files in the framework, my guess is that your headers are marked Private. Select the Copy Headers build phase, choose Detail from the View menu, and look at the Role column. Headers marked "Public" will be copied; headers marked "Project" or "Private" will not be.
Chris
|