Search code examples
iosxcodetestingxcode4build

Xcode 4 - One Click Build to Multiple Devices?


In Xcode 4 is it possible to somehow setup so that with one click of the 'Run' button in the top left have Xcode build to more than one device with one click?

It would save a lot of time, constantly having to click build to iPhone, then build to iPod, then iPad is irritating one after another. All in one click would be ideal.

An example of how this would be helpful is when building a universal app, where I want to quickly build and run on both my iPhone and iPad at the same time.

Any help appreciated, thanks.


Solution

  • Add a new target to your project: File -> New -> New Target... From Other category choose Aggregate. Then build that target which aggregates all other targets you're interested in.

    P.S. Universal App is an app which is built from one target. Two targets are two apps.