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
12
votes
3 answers

How to list all test cases using xcodebuild without running?

Using xcodebuild I can run a specific test or group of tests. But is there a way to list all tests without running them, using xcodebuild or any other tool that comes with xcode? Facebook's xctool can do this but I hope to not take dependency on…
Haitao Li
  • 1,695
  • 16
  • 25
12
votes
5 answers

Unable to copy dSYM file into archive

Whenever I run 'build and archive' from XCode I get the following message: Unable to copy dSYM file into archive. Please make sure that your application has set the “Debug Information Format” build setting to “DWARF with dSYM File”. I have checked…
DerekH
  • 860
  • 5
  • 11
12
votes
4 answers

xcodebuild test : Could not launch simulator: -10827

I am running my build agent as a launch agent. I get this error when I try to run "xcodebuild test ..." : 2016-07-14 16:31:00.535 xcodebuild[11579:21390] [MT] iPhoneSimulator: Could not launch simulator: -10827 xcodebuild: error: Failed to build…
thorax
  • 574
  • 1
  • 5
  • 16
12
votes
2 answers

xcodebuild (XCode 7.1) - unexpected successful exit code from cancelled command

I'm getting the following during the bundle resources copying phase in xcodebuild (XCode 7.1): 2015-11-03 22:16:28.218 xcodebuild[28202:300463] DVTAssertions: Warning in …
Ohad Schneider
  • 36,600
  • 15
  • 168
  • 198
12
votes
2 answers

xcodebuild far slower than Xcode?

Building from the command line with xcodebuild is orders of magnitude slower than building the same project, same scheme, same target from within Xcode. Does anyone know why this might be the case and how I might speed up my xcodebuild build? I'm…
PHD
  • 586
  • 1
  • 4
  • 11
12
votes
2 answers

xcodebuild corrupts test result output when output redirected to file

I have Jenkins with the Xcode plugin configured to run unit tests by adding the test build action to the Custom xcodebuild arguments setting. For more information on getting Jenkins to run the unit tests at all with Xcode 5, see this question. Now…
GBegen
  • 6,107
  • 3
  • 31
  • 52
12
votes
3 answers

Updating Xcode yields error "cannot find code object on disk" during codesigning

I just updated to the newest version of Xcode and encountered an error while running our automated build scripts (they use the xcodebuild and xcrun commands). The error occurs immediately after the ### Codesigning '/Users/... log statement and…
Alfie Hanssen
  • 16,964
  • 12
  • 68
  • 74
12
votes
0 answers

"arch already exists in fat dylib" in build log

This line repeats many times in my build logs of my iOS project (its built by jenkins). arch already exists in fat dylib Is it something to worry about? It builds fine, but its a little hard to read the build logs with that being repeated hundreds…
Andrew
  • 15,357
  • 6
  • 66
  • 101
12
votes
1 answer

How to show the xcodebuild command line from xcode?

I'm trying to build a working simulator build from xcodebuild. Compilation works but the final product won't run on the simulator when installed via WaxSim. If I build through the Xcode GUI then the final product installs without issue from…
Kirby Todd
  • 11,254
  • 3
  • 32
  • 60
12
votes
6 answers

What automated build system do Mac developers use?

my team is currently using buildbot to automate overnight and continuous-integration builds and regression tests. For builds and unit tests, the builder just invokes a script which syncs the sources from p4 and then runs xcodebuild. The regression…
user23743
11
votes
2 answers

What are the differences between xcodebuild, xcrun and swift command line tools?

We can build and run Swift code/projects from the command line via multiple commands without using Xcode. I have heard of xcodebuild, xcrun and swift used for Xcode development. I do use fastlane but I don't really understand the tools powering it…
Pranav Kasetti
  • 8,770
  • 2
  • 50
  • 71
11
votes
3 answers

Unable to create pipeline because of service role

Even though I have created just a role specific to codepipeline and code build I am getting this error. Whatever I do I am unable to get rid of it. Anyone know how to resolve this? Could not update the service role policy. The following message…
kru
  • 403
  • 5
  • 18
11
votes
6 answers

llvm-gcc-4.2: error

The Project build & runs fine on a real device but a build for the iphone simulator finishes in this error 'llvm-gcc-4.2: error'. Any ideas? llvm-gcc-4.2: error trying to exec…
fmo
  • 818
  • 1
  • 8
  • 16
11
votes
1 answer

error: Multiple commands produce ... x86_64.swiftmodule

I am migrating an old app from swift 3 to swift 4 and got stuck this error: error: Multiple commands produce '/Users/.../Library/Developer/Xcode/DerivedData/ ... /Debug-iphonesimulator/CompassV3.swiftmodule/x86_64.swiftmodule': 1) Target 'CompassV3'…
MiguelSlv
  • 14,067
  • 15
  • 102
  • 169
11
votes
0 answers

`xcodebuild` not working from terminal

After I used migration assistant to migrate data from my old mac to a new one I can no longer use Xcode command line tools. Whenever I run any xcodebuild command in terminal (even xcodebuild with no parameters) I get the following error: dyld:…