Note that there are some explanatory texts on larger screens.

plurals
  1. POLimit or change Scheme Destinations in Xcode 4?
    primarykey
    data
    text
    <p><strong>Overview &amp; Motivation</strong></p> <p>I would like to set up some Schemes that build for iOS Device only. </p> <p>For example, I never want to build an Ad Hoc build with a Simulator destination. The ability to choose Simulator destinations for an Ad Hoc build is just noise.</p> <p><strong>Desired Behavior</strong></p> <p><img src="https://i.stack.imgur.com/TSZuC.png" alt="Desired - only iOS Device"></p> <p><strong>Actual Behavior</strong></p> <p><img src="https://i.stack.imgur.com/tgAZQ.png" alt="Actual"></p> <p><strong>What I tried</strong></p> <ul> <li>I removed the "iphonesimulator" value in "Support Platforms" in the configurations that are meant to be device-only, like so:</li> </ul> <p><img src="https://i.stack.imgur.com/hiAHw.png" alt="Configuration Support Platforms"></p> <ul> <li>In the Ad Hoc scheme settings, I disabled the run and profile steps. I left the archive step</li> </ul> <p><img src="https://i.stack.imgur.com/WQmwk.png" alt="steps"></p> <ul> <li>For all Build steps (including the disabled ones) I set the Build Configuration to "Ad Hoc", which was previously set to <code>iphoneos</code> only.</li> </ul> <p><strong>Results so far</strong></p> <p>I can still select Simulator as a destination in the scheme dropdown: </p> <p><img src="https://i.stack.imgur.com/Yp9QN.png" alt="Simulator still availabke"></p> <p>However, if I run the scheme with a Simulator destination, I get an <strong>expected, appropriate</strong> error:</p> <p><img src="https://i.stack.imgur.com/i3ow2.png" alt="The selected run destination is not valid for this action."></p> <p>It would be much nicer for myself and my team is would could just hide these invalid destinations.</p> <p>Is there a better way to manage what destinations are available for a given scheme?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload