Xcode 4 - One Click Build to Multiple Devices?

╄→гoц情女王★ 提交于 2019-12-21 06:04:26

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/15300241/run-on-simulator-and-phone-with-one-click

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!