Re: Copy Headers that preserves subdirectory structure?
Re: Copy Headers that preserves subdirectory structure?
- Subject: Re: Copy Headers that preserves subdirectory structure?
- From: Mike Jackson <email@hidden>
- Date: Fri, 12 Oct 2007 09:05:06 -0400
At one point I was using a "Run Script Phase" that had the following
contents:
#------------------
echo 'SRCROOT:'${SRCROOT}
cd ${SRCROOT}
# I have to move up a directory due to my layout.
echo 'Copying Usul Headers into Framework..'
cd ../
for H in `find ./Usul -name "*.h"`; do
echo ${H}
ditto ${H} ${BUILT_PRODUCTS_DIR}/${H}
done
#------------
The key was using ditto with the find command.
Here is the relevant thread from a few years back. A radar bug was
filed but I have no idea if it was ever fixed.
http://lists.apple.com/archives/xcode-users/2005/Jul/msg00025.html
--
Mike Jackson Senior Research Engineer
Innovative Management & Technology Services
On Oct 11, 2007, at 3:19 PM, Steve Byan wrote:
On Oct 11, 2007, at 3:11 PM, Michael Rawdon wrote:
On Oct 11, 2007, at 11:58 AM, Steve Byan wrote:
Is there a way to have the Copy Headers build phase preserve the
subdirectory structure for the header files?
Try adding the folder containing the header to Xcode as a folder
reference, and then add that to the Copy Headers build phase
(you'll probably have to drag-drop it into the phase rather than
checking the checkbox in the detail view). Folder references are
the mechanism Xcode provides for preserving a directory hierarchy
during a copy. See the Xcode documentation for more information.
Thanks, I always wondered what the "Create Folder References" radio-
button was about. Now I know.
Regards,
-Steve
--
Steve Byan <email@hidden>
Littleton, MA 01460
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40gmail.com
This email sent to email@hidden
_______________________________________________
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