Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

install application in iphone device through command line

Tags:

I'm using xcodebuild install -alltargets -iphoneos4.2 -activeconfiguration provisioning_profile=path_of_my_provisioningprofile code_sign_identity=identity. This command is building my app and i am getting build file (.app) also. But how to install the app in to device from command line. Please help me in this issue.

like image 221
sri Avatar asked Sep 20 '11 07:09

sri


People also ask

How do I deploy an App to an iOS device?

Install the App on User Devices For macOS, double-click the file to install and run it. To install iOS, iPadOS, tvOS, or watchOS apps using Xcode: Attach the device to the computer, or attach the paired phone for a watchOS device. Select Window > Devices and Simulators, and then select the Devices tab.

Is there CMD for iOS?

Terminal is a sandboxed command line environment for iOS that has over 30 commands currently available, covering many of the most used command line tools and commands you know and love, like cat, grep, curl, gzip and tar, ln, ls, cd, cp, mv, rm, wc, and more, all available right on your iPhone or iPad.

How do I access iPhone command line?

Press to launch Cydia from your iPhone's Springboard. Once Cydia opens press to select the Sections tab at the bottom of the screen. Press to select Terminal Support from the list of Sections. Press to select MobileTerminal from the list of Packages available.


1 Answers

Fruitstrap is no longer maintained, for a more up to date project checkout the fork by PhoneGap called ios-deploy.

To install run: npm install -g ios-deploy

Here are some examples of how to use it:

// 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 
like image 52
Andrew Gable Avatar answered Sep 20 '22 20:09

Andrew Gable