xcode 在设备上安装 Release 版本的最快方法?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/13925590/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Quickest way to install Release build on device?
提问by RobertJoseph
What is the easiest/quickest way make Xcode install a Release build of my app onto a device? Right now I create an ipa and then manually install it. Can I create a new scheme to do it? Also, I would prefer that the app is just installed onto the device - without having to run it.
让 Xcode 将我的应用程序的 Release 版本安装到设备上的最简单/最快捷的方法是什么?现在我创建了一个 ipa,然后手动安装它。我可以创建一个新的方案来做到这一点吗?另外,我更希望应用程序只是安装到设备上 - 而不必运行它。
Thanks
谢谢
回答by atreat
You should be able to go in to your Edit Schemes preference pane. You can change your Build Configuration to Release there. I would suggest creating a duplicate scheme in which you can build Release builds.
您应该能够进入“编辑方案”首选项窗格。您可以在那里将构建配置更改为发布。我建议创建一个重复的方案,您可以在其中构建发布版本。
回答by rickster
@atreat's answer might be a better idea in general, but I'm not at my Mac to test right now...
@atreat 的回答一般来说可能是一个更好的主意,但我现在不在我的 Mac 上进行测试......
I just hit the Profile button/menu in Xcode. That builds the Release configuration by default, puts it on the device, and launches Instruments. Just quit or ignore Instruments and you're done.
我刚刚点击了 Xcode 中的 Profile 按钮/菜单。默认情况下构建发布配置,将其放在设备上,并启动仪器。只需退出或忽略 Instruments 即可。
回答by matt
Also, I would prefer that the app is just installed onto the device - without having to run it.
另外,我更希望应用程序只是安装到设备上 - 而不必运行它。
Then build and run and hit Stop. Now it's installed.
然后构建并运行并点击停止。现在它已安装。