CopyFiles phase of project templates
CopyFiles phase of project templates
- Subject: CopyFiles phase of project templates
- From: Bryan Smart <email@hidden>
- Date: Fri, 23 Mar 2012 04:59:45 -0400
- Acceptlanguage: en-US
- Thread-topic: CopyFiles phase of project templates
I maintain a framework (port/mod of Renaissance for gnuStep) that makes it possible for blind Cocoa developers to define their app's user interface from an XML file. Based on the nesting of elements, and their attributes, the framework automatically lays out the UI elements to form a properly formatted UI. The XML file replaces the XIB, and proxies the Cocoa objects, so, other than learning the syntax for the markup file, blind users can work as if they're using the stock elements. This is handy, as it's quite difficult to size and arrange all of the UI elements for a blind dev without spending lots of time manually calculating position, size, and spacing.
I've been trying to get some project templates together for Xcode 4. The idea is to have an app template that is like the stock Cocoa Application template, but using this framework, instead. All has worked out fine with the exception of getting the template to automatically copy the required private framework in to the application bundle.
I've found notes online about the BuildPhases section of the template, and have a CopyFiles phase declared with all needed keys. However, I can't find a way to list the files that should be copied as part of the phase.
<dict>
<key>Class</key>
<string>CopyFiles</string>
<key>DstSubfolderSpec</key>
<string>10</string>
<key>RunOnlyForDeploymentPostprocessing</key>
<string>NO</string>
</dict>
Inside the PBXPROJ that Xcode creates for a project with a CopyFiles build phase, there is a section like:
/* Begin PBXCopyFilesBuildPhase section */
C774C0CF151C65960006020D /* CopyFiles */ = {
isa = PBXCopyFilesBuildPhase;
buildActionMask = 2147483647;
dstSubfolderSpec = 10;
files = (
C774C120151C6F040006020D /* Renaissance private.framework in CopyFiles */,
);
That looks a lot like what is in the template for the CopyFiles phase. The project file uses a "files" block to list the files that are included, so I tried a files key and array in the template, but it didn't work.
<dict>
<key>Class</key>
<string>CopyFiles</string>
<key>DstSubfolderSpec</key>
<string>10</string>
<key>RunOnlyForDeploymentPostprocessing</key>
<string>NO</string>
<key>Files</key>
<array>
<string>Renaissance private.framework</string>
</array>
</dict>
I've searched all of the OS X and iOS project templates, but can only find the CopyFiles build phase used in a single template (the Command Line Tool). In that template, though, no files are included in the copy phase, so no clues.
I have exhaustively searched online, but can't find any discussion, or even just a file, where this phase is used. Any breadcrumbs appreciated.
Bryan
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden