Re: Converting Xcode paths to usable paths
Re: Converting Xcode paths to usable paths
- Subject: Re: Converting Xcode paths to usable paths
- From: Dirk Becker <email@hidden>
- Date: Sat, 5 Dec 2009 00:32:09 +0100
SIMPLIFIED_PATH = $(ANY_PATH:standardizepath)
Neat. But how does that help in AppleScript?
Of course it depends on how you pass the value from XCode to
AppleScript.
Let's say you refer to the variable INFOPLIST_FILE in a scripted build
phase that does something to your plist source.
You would then define a new custom variable BETTER_INFOPLIST_FILE = $
(INFOPLIST_FILE:standardizepath) in your project or target build
settings, or in the xcconfig, and substitute the new variable name
where you previously used INFOPLIST_FILE.
As I said INFOPLIST_FILE points to the source, in your case it is more
likely BUILT_PRODUCTS_DIR or CONFIGURATION_BUILD_DIR. I am not sure
which because my projects are heavily tweaked in this regard.
Dirk
_______________________________________________
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