Re: Old Xcode default "Build" Directory & Time Machine
Re: Old Xcode default "Build" Directory & Time Machine
- Subject: Re: Old Xcode default "Build" Directory & Time Machine
- From: Michael Watson <email@hidden>
- Date: Fri, 28 Feb 2014 21:13:08 -0800
On 24 Feb, 2014, at 14:19, Jerry Krinock <email@hidden> wrote:
> I remember that, in Xcode 3, Preferences had a setting for your default “Build Directory”. I still use that directory for archiving non-Mac-App-Store builds with my own script, but Time Machine is not backing it up.
>
> I also remember that Time Machine had a “feature” of *not* backing up certain directories related to Xcode, so I’m thinking that’s the cause of this problem.
Xcode intentionally excludes its derived data from Time Machine via public API. Xcode may not always have done this, but it's been happening for quite a while now. (4.x?) Someone from the Xcode team could tell you exactly when they started doing it.
On 24 Feb, 2014, at 18:25, Kyle Sluder <email@hidden> wrote:
> If you want, you can try removing the “don’t backup” xattr from the build directory, but if you ever nuke and rebuild it the setting will be back and you’ll silently lose backups.
The correct way to manipulate Time Machine exclusions from the command-line is tmutil(8). Don't go behind Time Machine's back. But:
> I recommend adding a build phase that copies your archives out to a directory entirely under your control.
This is the best thing to do, if you really want Time Machine to back up what you build. (I argue that this should not be necessary; if you cannot regenerate your build output from the project, you have issues you need to deal with outside of Time Machine backups.)
On 28 Feb, 2014, at 7:32, Glenn L. Austin <email@hidden> wrote:
> Xcode sets an xattr ("com.apple.XcodeGenerated") on any directories that
> will be automatically re-generated when a build is run. Time Machine
> honors that these directories are always re-created for a build, so they
> don't need to be backed up.
Time Machine doesn't care about the com.apple.XcodeGenerated xattr.
--
>
> My Xcode Preferences contain the following…
> IDEApplicationwideBuildSettings
> SYMROOT=$HOME/Documents/Programming/Builds
>
> And indeed that SYMROOT path is the one that I’m having trouble with.
>
> I presume that Xcode 5 would ignore this preference, and that I could solve my problem by deleting it. However, I'm worried about breaking something in the Xcode build system that I don’t understand. Any advice would be appreciated.
>
> Jerry Krinock
>
>
> _______________________________________________
> 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
_______________________________________________
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