Re: Copy Build Phase should keep modification Date
Re: Copy Build Phase should keep modification Date
- Subject: Re: Copy Build Phase should keep modification Date
- From: Bernie Maier <email@hidden>
- Date: Thu, 27 Apr 2017 20:27:29 +1100
Gerriet M. Denkmann:
Xcode Version 8.3.2 (8E2002).
I have a Copy Build Phase which copies some files.
It seems that Xcode checks whether these files are newer, and if so, copies
them to the app bundle. So far so good.
But while copying, it changes the modification date to the time of the build.
I rather would like to keep the modification dates (similar to cp -p).
Is this possible? If so, how?
I don't know offhand whether it's possible within Xcode's pre-configured copy
files build phase, but whenever I encounter such limits in Xcode's built-ins I
will quite happily make my own run script build phase. In this case, I know I
have some projects that run an rsync command to copy (new/updated) files and
preserve the file attributes. Other similar commands exist, I just use rsync
because I am familiar with it.
- Bernie
_______________________________________________
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