Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Run Xcode iOS application from command-line

OK, so this is all I need:

  • I've got an Xcode 4.3 project, all set up
  • I want to run in the simulator, given its path, via the terminal

Is this doable? And how?

like image 468
Dr.Kameleon Avatar asked Dec 18 '25 15:12

Dr.Kameleon


1 Answers

Best thing to do, if it doesn't have much of a UI, is to create a Mac-targeted version. Create a side-directory within your project, and create a new Mac project in that, complete with separate main, et al. Then "add existing files" to that project to add the files you want from the original project.

There's also a way to do this within a single Xcode 4 (not Xcode 3) project, vs creating a separate one, but that's a little flaky and this approach is simpler.

If you want to preserve the UI, though, probably the best approach is to just run the app in the emulator.

like image 191
Hot Licks Avatar answered Dec 21 '25 07:12

Hot Licks