Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
572 views
in Technique[技术] by (71.8m points)

ios - 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.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...