Why did my changes suddenly disappear?
Why did my changes suddenly disappear?
- Subject: Why did my changes suddenly disappear?
- From: Brian Syme <email@hidden>
- Date: Wed, 22 May 2013 10:34:57 -0700
Well, actually I know why. I'm looking for a way to avoid it...
Over the last few weeks I've been fighting with Xcode workspaces, nested projects and public header files. I know from looking at places like stackoverflow that I'm not the first to this battle. My conclusion in that it's either shockingly broken or shockingly badly documented. Either way it's shocking.
That said I did finally get some kind of reasonable behavior when building and consuming static libraries. It even works for archive builds and isn't particularly onerous to set up.
But I have an annoying problem. During the build static library public headers are copied to a location in the derived data directory. Occasionally I end up opening this copy of the header in Xcode (probably by right clicking on a type declared in the header and selecting Jump To Definition.) I sometimes forget this (Xcode doesn't make it particularly obvious that I'm looking at the copy - a slightly different jump bar path is the only difference) and make changes to the copy, which are promptly overwritten by the next clean build. Annoying, to say the least.
So I'm looking for possible solutions to this. Ideally Xcode would know to open the original and not the copy (somehow) but I would settle for just making the copy read only in Xcode as a way to guard against editing it. I suppose I could do this with a custom build step.
Has anyone else found a good way to deal with this?
Brian
_______________________________________________
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