Re: Changing build settings based on archive-vs-run?
Re: Changing build settings based on archive-vs-run?
- Subject: Re: Changing build settings based on archive-vs-run?
- From: Fritz Anderson <email@hidden>
- Date: Thu, 03 Apr 2014 16:19:03 -0500
On 3 Apr 2014, at 3:43 PM, Rick Mann <email@hidden> wrote:
> I think the answer to this is "no," but is there any way to affect build settings based on whether I'm Archiving or Running (or Testing or Analyzing or Profiling)?
>
> Here's the situation: I Archive to make builds for QA, but I do both "Release" and "Debug" configurations. To make my life easier, I have two Schemes, one set to Archive Debug, one set to Archive Release. That way, I can just choose one from the popup, and choose Archive, and I'm off to the races.
>
> The problem is that my Debug configuration is set to build the active architecture only. If there happens to be a device connected, it builds just for that device. I'd like to set it up so that it builds all architectures when Archiving, but the active architecture when just Running (debugging).
>
> Is there any way to do this?
Active-only is useful only if you want to save time for the quick turnaround that the Run (debug) action implies. If you need the product of the Archive Debug scheme to generate all-architectures for the Archive action
- Select the project (top) item in the Project navigator; click the project icon in the resulting editor; select the Info tab.
- Duplicate your Debug configuration. Call it “ForcedArch” or something.
- Select your target, and the Build Settings tab.
- Click the disclosure triangle for Build Active Architecture Only, and set the ForcedArch line to NO.
- Be sure the Architectures line is as you wish; if not, set it for the ForcedArch configuration.
- In the Archive Debug scheme, set the configuration for Archive to ForcedArch. Your Run action can keep Debug.
Do I misunderstand?
— F
_______________________________________________
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