Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Run on simulator and phone with one click [duplicate]

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.

like image 303
Josh Kahane Avatar asked Dec 11 '25 16:12

Josh Kahane


1 Answers

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.

like image 117
Eimantas Avatar answered Dec 14 '25 07:12

Eimantas