构建后无需运行即可快速部署应用 [英] Quick deployment of an app after build without running

查看:26
本文介绍了构建后无需运行即可快速部署应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有一种快速的方法可以通过 Xcode 将您刚刚编译的应用部署到连接的 iPhone 上,而无需实际在手机上启动它?

Via Xcode is there a quick way to deploy an app you've just compiled to an attached iPhone without actually launching it on the phone?

我的情况是,我已经在模拟器中对我的应用程序进行了很好的测试,现在我只想将它部署到我配置的 iPhone 上,抓住设备,然后不运行它.当然,我可以点击 build &在我将目标设置设置为 release & 后运行设备,但它会尝试启动 GDB 会话,如果我的手机处于屏幕锁定模式,它甚至会抱怨.

My scenario is that I've tested it out my app just fine in the simulator, now I just want to deploy it to my provisioned iPhone, grab the device and go without running it then and there. Sure, I can just hit build & run after I've set the target settings to release & device, but that attempts to initiate a GDB session and it even complains if my phone is in screen lock mode.

当然,这不是什么大问题,而且我并不是真的在问如何将相同的应用程序部署给许多未参与开发且未运行 Xcode 的其他测试人员,只是如果我可能错过了某种构建和"deploy' 选项,不会尝试运行应用程序.

Not a huge problem of course, and I'm not really asking how to deploy the same app to a lot of other testers who weren't involved in the development and aren't running Xcode, just if I might have missed some kind of 'build & deploy' option that doesn't attempt to run the app.

推荐答案

您总是可以构建和存档,将其保存在某处并通过 iTunes 复制它...我怀疑它会更快或更方便.我将一直使用 Build'n'Run 并使用停止按钮或主页按钮停止.至少您要确保它确实在设备上运行和启动.:-)

You could always build and archive, save it somewhere and copy it via iTunes... I doubt it is much faster or any more convenient. I'll use Build'n'Run all the time and stop with stop button or home button. At least you make sure that it actually runs and starts on the device. :-)

这篇关于构建后无需运行即可快速部署应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆