• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Xcode not copying modified files to Resources folder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Xcode not copying modified files to Resources folder (From: Sir Rattykins <email@hidden>)
 >Re: Xcode not copying modified files to Resources folder (From: Andrew Pontious <email@hidden>)

  • Prev by Date: Re: Returning long long values
  • Next by Date: Re: Returning long long values
  • Previous by thread: Re: Xcode not copying modified files to Resources folder
  • Next by thread: Instruments: Where is the leaked memory contents?
  • Index(es):
    • Date
    • Thread