xcodebuild Messing with Time Machine
xcodebuild Messing with Time Machine
- Subject: xcodebuild Messing with Time Machine
- From: Jerry Krinock <email@hidden>
- Date: Tue, 05 Aug 2014 03:03:33 -0700
Back in February, I reported here that the the directory into which I build my non-Mac-App-Store Release builds was not being backed up by Time Machine, and with the help of Kyle Sluder on this list discovered that this was due to extended attributes (xattrs) on that directory. We surmised that this was done by Xcode, because years ago I had specified this as my Build directory, before Xcode 4 came and changed everything, and Xcode had been known to do this in the past. But this did not quite make sense, because when Xcode 4 came along I’d adopted the new defaults in Xcode’s Preferences > Locations, so Xcode should have no knowledge of this directory.
Well, during the last few months I’ve had these xattrs mysteriously reappear a number of times, and have now figured out the pattern: It happens every time I ship a non-Mac-App-Store product, which is done with a script that invokes xcodebuild, codesign, zip, etc.
Although some other tool invoked by my shipping script may theoretically be the culprit, obviously xcodebuild is the one with the motive, means, and past history of such behavior.
Of course, because I must ship with Xcode 5, this is all about Xcode 5’s xcodebuild. If it still happens after I’m allowed to ship with Xcode 6, I’ll file a bug. In the meantime, anyone else with this problem might want to install a script such as the one given here, as a launchd task.
https://gist.github.com/jerrykrinock/d5a8606228e2df281450
I’ve got it running hourly. Any time it finds xattrs on my Builds directory, it removes them and displays a dialog. After a few months I noticed that the dialog alwyas would pop up after I’d shipped.
I think anyone using xcodebuild might want to take a quick look at their Time Machine backups.
_______________________________________________
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