Re: Xcode not copying modified files to Resources folder
Re: Xcode not copying modified files to Resources folder
- Subject: Re: Xcode not copying modified files to Resources folder
- From: Peter N Lewis <email@hidden>
- Date: Sat, 21 Feb 2009 15:34:44 +0900
At 14:51 -0800 20/2/09, Andrew Pontious wrote:
It's a known issue that Xcode does not check the modification date
of everything inside a folder when checking to see whether it should
copy a new version of the folder into the executable.
Your best bet at the moment is to use a shell script phase instead
of a copy phase.
Here is the script I use for Aragom.
I haven't extended it to search for folders yet, so you have to
specify each folder explicitly.
Enjoy,
Peter.
#!/usr/bin/perl -w
use warnings;
use strict;
use diagnostics;
use utf8;
CopyResources( "Sounds" );
CopyResources( "WebHelp" );
sub CopyResources {
my ( $folder ) = @_;
my $source = "$ENV{PROJECT_DIR}/Resources/$folder";
die $source unless -d $source;
my $dest = "$ENV{TARGET_BUILD_DIR}/$ENV{EXECUTABLE_FOLDER_PATH}";
die $dest unless -d $dest;
system( "/usr/bin/rsync", "-C", "--recursive", "--links",
"--perms", "--times", "--delete", $source, $dest );
}
--
Run macros from your iPhone with Keyboard Maestro Control!
or take a break with Aragom Space War for your iPhone
Keyboard Maestro <http://www.keyboardmaestro.com/> Macros for your Mac
Aragom Space War <http://www.stairways.com/iphone/aragom> Don't get killed!
<http://www.stairways.com/> <http://download.stairways.com/>
_______________________________________________
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