Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I run an iPhone app from Xcode without debugging it?

Tags:

xcode

ios

Is it possible to have Xcode automatically launch an app on my iOS device from Xcode 4.6 without attaching its debugger to the app? I'm working on an automated build system, so manually launching the app is not an option.

I've found Run Without Building under the Product -> Perform Action menu, but that still attaches the debugger. I can edit the scheme to make Xcode wait until the app is launched manually before attaching the debugger, but that's basically the opposite of what I want.

like image 314
Greg Avatar asked Feb 04 '13 19:02

Greg


2 Answers

If you want to launch an app from Xcode without launching the debugger, I would uncheck the “Debug executable” option in the Xcode scheme:

enter image description here


If you want to launch an app manually, you can:

  • Select your device in the "scheme" dropdown;
  • Build the app (don't run);
  • Open the organizer and go to the "devices" tab;
  • Drag your app from the "Products" folder in the main Xcode project navigator to the device in the organizer window and it will be installed; and
  • You can then run the app manually from the device at that point.

This process can be useful when diagnosing startup performance and you want to run the app on the device completely separate from Xcode (and the debugger, if you have a debug build).

like image 157
Rob Avatar answered Sep 23 '22 08:09

Rob


Just Build and run and once it launches press stop and open the app manually. It will then be the app you built but not connected.

like image 38
rooster117 Avatar answered Sep 26 '22 08:09

rooster117