Re: Converting Xcode paths to usable paths
Re: Converting Xcode paths to usable paths
- Subject: Re: Converting Xcode paths to usable paths
- From: Chris Espinosa <email@hidden>
- Date: Tue, 1 Dec 2009 13:55:25 -0800
On Dec 1, 2009, at 12:23 PM, Steve Mills wrote:
> How can one convert, in AppleScript, a bi-directional (for lack of a better term that I'm aware of) Xcode path to a real Posix path? I need to turn "/depot/cmyk/creatortech/desktop/mac/C2Mac/../../../../xcodebuilds/Creator.build/Debug/Preprocessed-Info.plist" into "/depot/cmyk/xcodebuilds/Creator.build/Debug/Preprocessed-Info.plist".
>
> I've submitted bugs in the past about Xcode using these weird paths in places it shouldn't, but not this exact issue, which I'll do now.
1) The first path is a real Posix path.
2) It has the ../../.. in it because you defined something with a path relative to another path, which is not a direct ancestor of that path. In this case, it looks like your Per-Configuration Build Directory is defined relative to the Project Directory (I'm supposing that's what C2Mac is) but is actually outside the Project Directory. If you make it an absolute path or a child of the Project Directory you won't get the chain of ../../.. references.
Chris _______________________________________________
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