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
205
votes
10 answers

"Too many symbol files" after successfully submitting my apps

I downloaded Xcode 6 GM and submitted two Swift apps to the app store today. Both passed all pre-upload verification and all the other stuff they had to pass and were successfully submitted. But then I got two emails from Apple... one for each…
Jim Barber
  • 2,139
  • 2
  • 13
  • 8
151
votes
16 answers

How do I run a terminal command in a Swift script? (e.g. xcodebuild)

I want to replace my CI bash scripts with swift. I can't figure out how to invoke normal terminal command such as ls or xcodebuild #!/usr/bin/env xcrun swift import Foundation // Works println("Test") // Works ls // Fails xcodebuild -workspace…
Robert
  • 37,670
  • 37
  • 171
  • 213
127
votes
10 answers

xcodebuild says does not contain scheme

I have a curios issue. I have a project that I've worked on and always built from the XCode IDE, and it worked fine. Now I'm setting up Bamboo to build the project and as such am building it from the command line. The issue is, if I check my code…
Zac Tolley
  • 2,340
  • 4
  • 19
  • 22
116
votes
7 answers

How do I determine which iOS SDK I have?

I'm sure this is simple, but how do I determine which version of the iOS SDK I currently have installed?
Josh Brown
  • 52,385
  • 10
  • 54
  • 80
101
votes
4 answers

How can I resolve "Error: No developer directory found at /Developer"?

I just upgraded XCode to 4.3.1. I'm using a script to build (and then deploy through Testflight) my app. But I now receive this error: Error: No developer directory found at /Developer. Run /usr/bin/xcode-select to update the developer directory…
Giordano Scalzo
  • 6,312
  • 3
  • 31
  • 31
82
votes
9 answers

Use xcodebuild (Xcode 8) and automatic signing in CI (Travis/Jenkins) environments

With the release of Xcode 8, Apple introduced a new way of managing the signing configuration. Now you have two options Manual and Automatic. According to the WWDC 2016 Session about Code signing (WWDC 2016 - 401 - What's new in Xcode app signing),…
pablobart
  • 2,641
  • 1
  • 24
  • 22
81
votes
5 answers

How can I use the legacy build system with Xcode 10's `xcodebuild`?

I'd like to use the new build system of Xcode 10 for development, but our build in our continuous integration system fails since the xcarchive produced has an issue: the Info.plist in the xcarchive is missing the ApplicationProperties key and the…
DarkDust
  • 90,870
  • 19
  • 190
  • 224
79
votes
3 answers

Is the project.xcworkspace file important?

I am doing command line xcodebuild using a shell script. My problem is if I open and close the xx.xcodeproj file once and then use that command it works well. Somehow if I get deep into the file changes, this project.xcworkspace is the only file…
thndrkiss
  • 4,515
  • 8
  • 57
  • 96
73
votes
2 answers

xcodebuild: simulator or device?

How do I specify to xcodebuild (the command line tool) whether I want to build for the simulator or device?
Steven Fisher
  • 44,462
  • 20
  • 138
  • 192
65
votes
4 answers

Which version of Xcode does xcodebuild use?

I have installed both Xcode 3.2 and Xcode 4.0.2 on the same machine, which uses Hudson for automated CI (continuous integration) builds. When I say that both were installed, what I mean by that is that I can use both Xcode 3 and Xcode 4…
kraftydevil
  • 5,144
  • 6
  • 43
  • 65
65
votes
12 answers

How to filter the xcodebuild command line output?

Running xcodebuild from the console will bring you very verbose output and I wasn't able to locate any options for limit its output in order to display only warnings and errors. I'm looking for a way to capture the xcodebuild output and filter it.…
sorin
  • 161,544
  • 178
  • 535
  • 806
64
votes
12 answers

git error "unable to locate xcodebuild" after a fresh OS X Mavericks upgrade

When I try to run previously working git commands, I get this: dyld: Symbol not found: _sqlite3_intarray_bind Referenced from: /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData Expected in: /opt/local/lib/libsqlite3.dylib in…
tol4trob
  • 1,187
  • 1
  • 8
  • 8
61
votes
10 answers

The project named "Foo does not contain a scheme named "Bar" bitrise.io

I just configure a project in bitrise.io. But the xcode-build fails with error: xcodebuild: error: The project named "Foo" does not contain a scheme named "Bar". The "-list" option can be used to find the names of the schemes in the project. I…
Guilherme Torres Castro
  • 15,135
  • 7
  • 59
  • 96
59
votes
13 answers

Running xcodebuild from a forked terminal

I'm trying to setup an automated build server for an iPhone application. I'd like to be able to have nightly adhoc beta builds so that testers can follow the development. I've setted up xcode successfully xcode to perform adhoc builds and I can also…
Yann Biancheri
  • 1,637
  • 1
  • 13
  • 9
58
votes
13 answers

Xcode 10: unable to attach DB error

When updating to Xcode 10, iOS static library target fails to build. Way how I am trying to build it is following: xcodebuild -target TargetName -configuration Release clean build With Xcode 9 everything runs smoothly, but when Xcode 10 is used for…
uerceg
  • 4,637
  • 6
  • 45
  • 63
1
2 3
92 93