Questions tagged [xcodebuild]

Questions related to the use of the command-line xcodebuild tool, which is part of Apple's Xcode toolset

builds one or more targets contained in an project, or builds a scheme contained in an Xcode workspace or Xcode project.

Usage

To build an Xcode project, run from the directory containing your project (i.e. the directory containing the projectname.xcodeproj package). If you have multiple projects in the this directory you will need to use -project to indicate which project should be built. By default, builds the first target listed in the project, with the default build configuration. The order of the targets is a property of the project and is the same for all users of the project.

See More

Building from the Command Line with Xcode FAQ

1388 questions
57
votes
9 answers

Continuous Integration for Xcode projects?

After using Hudson for continuous integration with a prior project, I want to set up a continuous integration server for the iPhone projects I'm working on now. After doing some research it looks like there aren't any CI engines designed…
Mike Akers
  • 12,039
  • 14
  • 58
  • 71
56
votes
7 answers

Choose a destination with a supported architecture in order to run on this device

my Xcode is Version 4.4.1 The project worked perfect before updating to this newer version, but now it stopped working
user1297301
  • 887
  • 1
  • 9
  • 12
55
votes
7 answers

Xcode : Adding a project as a build dependency

Im playing around with the soundcloud api, in its instructions it says to drag SoundCloudAPI.xcodeproj into your project add it as a build dependency I can drag the project in pretty easily, but how does one accomplish the next step?
Aran Mulholland
  • 23,555
  • 29
  • 141
  • 228
54
votes
7 answers

Can an Xcode .mobileprovision file be 'installed' from the command line?

I'm trying to automate the process of building apps for our clients using bash scripts running on a Mac Mini Server (OSX 10.7). My script is based on the spectacularly useful script from github originally posted at…
Ben Clayton
  • 80,996
  • 26
  • 120
  • 129
52
votes
2 answers

No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=x86_64, VALID_ARCHS=armv7 armv7s)

Running in Xcode is correctly, but when I want to use command line with $ /usr/bin/xcodebuild -scheme projectA -workspace projectA.xcworkspace -configuration Debug clean build And come up with the following. === BUILD NATIVE TARGET projectA OF…
Edward Chiang
  • 1,133
  • 2
  • 12
  • 24
49
votes
10 answers

xcodebuild -exportArchive: exportOptionsPlist error for key 'method': expected one of {}

I'm using command line xcodebuild tool to export ad-hoc distribution ipa file out of my archive like this: xcodebuild -exportArchive -archivePath /path/Archive.xcarchive -exportPath /path -exportOptionsPlist /path/options.plist However, this…
Vladimir Grigorov
  • 10,903
  • 8
  • 60
  • 70
47
votes
6 answers

Setting a provisioning profile from within xcodebuild when making iPhone apps

I'm using xcodebuild to compile my iPhone app from the command line. Is there a way to pass in some sort of option to set the provisioning profile? There seems to be not very much information about xcodebuild in general.
Steve Klabnik
  • 14,521
  • 4
  • 58
  • 99
47
votes
5 answers

Xcode 4: Run tests from the command line (xcodebuild)?

I've created a brand new iOS project in Xcode 4, and included unit tests. The default app has 2 targets, the main application and the unit test bundle. Using "Product > Test" (Command-U) builds the application, builds the unit test bundle, launches…
Steven Wisener
  • 471
  • 1
  • 5
  • 4
44
votes
7 answers

How to display compiler output or custom build steps output when building with xcode?

How can I see the output from the compiler of from the custom build steps (pre-action or post-action)?
sorin
  • 161,544
  • 178
  • 535
  • 806
43
votes
3 answers

Building with xcodebuild Timed out waiting for /"runContextManager.runContexts"

I am setting up my iphone project to run with hudson, my build script works fine locally, but when executing the following command on my snow leopard server mac xcodebuild -sdk iphoneos4.3 -workspace Moments.xcworkspace/ -scheme Moments…
Erik
  • 5,791
  • 5
  • 30
  • 45
40
votes
3 answers

Xcodebuild'ing a workspace and setting a custom build path

I'm trying to use xcodebuild to build a multi-project project in a workspace. When XCode builds a workspace it automatically places all build artifacts in a common directory in DerivedData so that each project can access it dependencies. If I use…
drekka
  • 20,957
  • 14
  • 79
  • 135
39
votes
5 answers

Terminal slow to start first time due to xcodebuild

The first time I run Terminal or start SmartGit either one is slow to start, taking up to ~30 seconds. When I look at the status bar for Terminal I see that it is stuck running some xcodebuild command. Not sure what exactly the command is. Does…
Dhananjay Suresh
  • 1,030
  • 1
  • 14
  • 28
38
votes
10 answers

Xcode 4 build succeeds, command line build fails?

I have a project in Xcode 4 (the latest non-beta version) that builds fine when built in Xcode itself. Specifically, the Ld command correctly uses the derived data directory (where build products, including a dependent static library, are…
James J
  • 6,428
  • 6
  • 35
  • 45
38
votes
5 answers

iOS builds / ipa creation no longer works from the command line

Overview Our command line builds (to build and create the .ipa) are no longer working. iTunesConnect has started rejecting builds that use the CODE_SIGN_RESOURCE_RULES_PATH build setting. If we build WITHOUT that setting the PackageApplication tool…
Mike Vosseller
  • 4,097
  • 5
  • 26
  • 28
38
votes
5 answers

Timeout when running xcodebuild tests under Xcode 6 via SSH

I seem to be having issues with integrating Xcode6 with jenkins, I currently have this setup and working with Xcode 5. With xcode 6 running remotely via SSH the simulator time-out, when I run locally it succeeds. Command xcodebuild -workspace…
StackRunner
  • 1,463
  • 2
  • 16
  • 22
1
2
3
92 93