Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS: Deploy and run app on device through command-line without jailbreaking

I'm looking for a way to automate dev-test cycles for iOS and most popular ways seemed to be jailbreak then ssh. This includes two steps:

  1. Deploy my app using command line from Mac/PC to the device.
  2. Run the app on the device from Mac/PC command line.

However, since iOS6 and iPhone5 the official jailbreaking had been flaky which made me want to find an alternative solution not based on jailbreak.

I've seen fruitstrap and this post.

However, the former is no longer maintained and the latter seems to be far from official or stable. So here I am again, any idea is appreciated!

like image 802
kakyo Avatar asked Mar 22 '13 20:03

kakyo


People also ask

How do I run an iOS app in a real device from Xcode?

You may connect a real device to your Mac using a cable, or for iOS or tvOS apps, connect it over Wi-Fi after you pair it with Xcode. For macOS apps, choose a scheme, then click the Run button in the toolbar. You can also run SwiftUI apps in the simulator or on a device using the controls in the preview.

Is there a command prompt app for iPhone?

Remote Command Prompt allows you control a remote Windows PC via your iPhone or iPad, using the command line terminal. This is an ideal companion to remote desktop or VNC. This app requires software to be installed on your Windows PC or Windows Server. No firewall adjustments are required.

Can you run an Xcode app on an iPhone?

Setting Up to Run Xcode On a Real Device Before you test your mobile app on an actual iOS device, you need to make sure that everything in your Xcode project is configured properly. Then you'll be able to run the app on an iPhone without having to write any extra code.

How do I run a developer app on my iPhone?

Tap Settings > General > Profiles or Profiles & Device Management. Under the "Enterprise App" heading, you see a profile for the developer. Tap the name of the developer profile under the Enterprise App heading to establish trust for this developer. Then you see a prompt to confirm your choice.


1 Answers

You can run instruments on the command line to launch your app (and run your automated tests) in the simulator. From what I understand this works with a real device as well.

See this question for more information:

UIAutomation through command line on a real device

like image 182
Bill Agee Avatar answered Oct 21 '22 12:10

Bill Agee