Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Build and install without run in Xcode

Tags:

xcode

iphone

Is it possible to build an xcode project for iPhone and have it install the result on a connected device without actually running the application? I'm currently using Build & Run, but I'm debugging a peer to peer game, so I have to build & run for two different devices, stop tasks on each of those and then build & run on the simulator so all three have the latest build. I'd love to not have to wait for the application to run on the two devices in this process.

like image 664
typeoneerror Avatar asked Jul 05 '10 00:07

typeoneerror


People also ask

How do I build and run in Xcode?

Build, Run, and Debug Your App To build and run your code, choose Product > Run, or click the Run button in your project's toolbar. Xcode analyzes your scheme's targets and builds them in the proper sequence. After a successful build, Xcode launches the associated app.

Where is build settings in Xcode 13?

Choose the project in the Project Navigator on the left. Select the Configurations target from the Targets section and click the Build Settings tab at the top. The Build Settings tab shows the build settings for the Configurations target. It's possible to expand this list with build settings that you define.

How do I run Xcode simulator?

The basic way to open a list of simulators is to use Xcode -> Window -> Devices and Simulators. Here you can create and manage all available simulators. But you cannot run them directly. You need to build your application on the simulator, and then you can run it.

How do I run an Xcode project on my iPhone?

Open up a project in Xcode and click on the device near the Run ▶ button at the top left of your Xcode screen. Plug your iPhone into your computer. You can select your device from the top of the list. Unlock your device and (⌘R) run the application.


2 Answers

You can drag and drop the built app (in your project build directory) into the Applications list of your device in the Organizer window.

like image 186
ohhorob Avatar answered Oct 12 '22 00:10

ohhorob


Things have changed a little since this answer...

For simulator, you can drag/drop your recently-built app product from the Products folder in the Project Navigator straight onto the simulator window.

For a device, drag and drop the app product into "Installed Apps" when viewing the device in the "Devices" window.

like image 31
simioliolio Avatar answered Oct 12 '22 02:10

simioliolio