Greg
Greg

Reputation: 10788

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

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.

Upvotes: 16

Views: 13389

Answers (4)

Maziar Saadatfar
Maziar Saadatfar

Reputation: 1895

I think you should delete the "Breakpoints" file first from git and after that add it to your ".gitignore" file

this file contains of your breakpoints:

Breakpoints_v2.xcbkptlist

it is in your project .xcworkspace file

your automated action no longer check it.

enter image description here

Upvotes: 0

Rob
Rob

Reputation: 437392

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).

Upvotes: 28

Jichao
Jichao

Reputation: 41775

xcode 6.3.1 enter image description here

unselect the debug execute, then you could run without debugging.

Upvotes: 7

rooster117
rooster117

Reputation: 5552

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.

Upvotes: 8

Related Questions