xcodebuild安装路径? [英] xcodebuild install path?
问题描述
我正在使用xcode开发iphone应用程序。我想自动化构建和运行过程,因此想知道是否有任何方法可以在模拟器或设备上安装构建的应用程序。
I am developing an iphone app using xcode. I would like to automate the "build and run" process, and so want to know if there is any way to install the built app on simulator or device.
有 xcodebuild安装
命令,但我不知道如何设置安装目录 DSTROOT
到模拟器/设备。请帮助我。
There is xcodebuild install
command but i don't know how to set the installation directory DSTROOT
to simulator/device. Please help me there.
我查看了许多论坛,人们建议只使用xcode GUI来做这些事情,我也这样做,但我真的很喜欢知道命令行方式。
I have looked through many forums where people suggest just to use xcode GUI to do the stuff, and I do that too, but I would really like to know the command-line way.
谢谢
推荐答案
全部你需要做的是将构建的.app从XCode把它放到〜/ Library / Application Support / iPhone模拟器/用户/应用程序/ [somefolder] /中,用一个名为[somefolder] .sb的文件(和文件夹一起,不是在其中)包含以下内容:
All you need to do is copy the built .app from wherever XCode puts it to ~/Library/Application Support/iPhone Simulator/User/Applications/[somefolder]/, with a file named [somefolder].sb (alongside the folder, not in it) containing the following:
(version 1)
(debug deny)
(allow default)
然后启动/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone模拟器。并选择您的应用程序。如果没有Jailbreaking,就无法从GUI外部安装它。
Then launch /Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone Simulator. And select your App. Without Jailbreaking it's NOT possible to install it from outside the GUI.
这篇关于xcodebuild安装路径?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!