• 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: Runtime lookup of build variables ...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Runtime lookup of build variables ...


  • Subject: Re: Runtime lookup of build variables ...
  • From: Luther Baker <email@hidden>
  • Date: Thu, 20 Mar 2014 16:47:33 -0500


On Thu, Mar 20, 2014 at 2:13 PM, Kyle Sluder <email@hidden> wrote:

If you're going to have a staging environment, it would seem appropriate
to have the staging code be _exactly_ what will be pushed to production.
Likewise for Test. Therefore I'd be very hesitant to use different
configurations for each—it's multiplies the opportunity for settings to
get out of sync.

Ah, that feels like sound reasoning _not_ to use "Configuration".
 

Rather, I'd have the app determine its environment by reading some sort
of external configuration file, and have setting up that configuration
file be part of the _deployment_ process. If it's not set, the app fails
to launch.


Thanks.

I was hoping to use "schemes" as an indicator as to which deployment-environment to target.

Schemes have actions - each of which have a pre and post slot. Maybe I could write a bash script to copy a scheme specific (deployment-environment specific) plist file into the target ... but I don't want the user to have to copy and paste it into every possible build/run/test/profile/analyze/archive slot of every single scheme.

But now I wonder, do actions like Analyze and Archive _implicitly_ invoke the Build action? Maybe I only need it in the Build action per scheme?

Even better, I would prefer this script to run at the Target/Build Phases or Build Rules level - but I'm just not sure of a simple convention to follow to determine the deployment-environment. I was trying to leverage Schemes but I don't see any key/value pairs put into the process space to lookup.

Thanks again for the turnaround!
 _______________________________________________
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: 
 >Runtime lookup of build variables ... (From: Luther Baker <email@hidden>)
 >Re: Runtime lookup of build variables ... (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: Runtime lookup of build variables ...
  • Next by Date: Re: Force Xcode to code sign my unit test bundle?
  • Previous by thread: Re: Runtime lookup of build variables ...
  • Next by thread: unbutton inside table cell action
  • Index(es):
    • Date
    • Thread