command-line - 通过命令行在iPhone设备上安装应用程序

标签 command-line xcodebuild

我正在使用xcodebuild install -alltargets -iphoneos4.2 -activeconfiguration provisioning_profile=path_of_my_provisioningprofile code_sign_identity=identity
此命令正在构建我的应用程序,我也正在获得构建文件(.app)。
但是如何从命令行将应用程序安装到设备中。
请帮我解决这个问题。

最佳答案

Fruitstrap 不再维护,通过PhoneGap进行最新的项目结帐,称为 ios-deploy

要安装运行:npm install -g ios-deploy
以下是一些使用方法的示例:

// deploy and debug your app to a connected device
ios-deploy --debug --bundle my.app

// deploy and launch your app to a connected device, but quit the debugger after
ios-deploy --justlaunch --debug --bundle my.app

// deploy and launch your app to a connected device, quit when app crashes or exits
ios-deploy --noninteractive --debug --bundle my.app

// Upload a file to your app's Documents folder
ios-deploy --bundle_id 'bundle.id' --upload test.txt --to Documents/test.txt

关于command-line - 通过命令行在iPhone设备上安装应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7481456/

相关文章:

java - 双击 .jar 文件以在命令行中启动它

node.js - `npm ERR! code 1` 运行 `npm ci && npm run build` 后出现 SyntaxError

ruby - Thor 阅读配置 yaml 文件以覆盖选项

xcodebuild 说不包含方案

swift - 错误 : "no such module <Swift Cocoapod name>" with Jenkins

objective-c - Xcode 和 xcodebuild 上的不同行为

xcode - 测量所有目标(包括依赖目标)的 xcodebuild 持续时间

java - Runtime.getRuntime().exec 如何运行 goto 命令

linux - shell脚本中 "&&"内部变量和外部变量的区别

import - xcodebuild 导入 XLIFF 本地化