简体   繁体   中英

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.

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

在此输入图像描述


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

xcode 6.3.1 在此输入图像描述

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM