• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Converting Xcode paths to usable paths
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Converting Xcode paths to usable paths (From: Steve Mills <email@hidden>)
 >Re: Converting Xcode paths to usable paths (From: Dirk Becker <email@hidden>)
 >Re: Converting Xcode paths to usable paths (From: Steve Mills <email@hidden>)

  • Prev by Date: Different visibility in Release version
  • Next by Date: seg fault or not?
  • Previous by thread: Re: Converting Xcode paths to usable paths
  • Next by thread: Re: Converting Xcode paths to usable paths
  • Index(es):
    • Date
    • Thread