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
14
votes
1 answer

How can I set the output directory of xcodebuild?

When I run xcodebuild the output directory is set to: /Users/name/Library/Developer/Xcode/DerivedData/project-fybdjyuardwltihdwcfbwmguufrw/Build/Products/ How can I manually set the output directory of xcodebuild?
S-K'
  • 3,188
  • 8
  • 37
  • 50
14
votes
2 answers

Is there an API or any other method to automate the submission process?

I have a number of apps which are similar in functionality and UI. I create the user interface by picking up variables from a .plist file. For instance, I save the source of the API from where I pick up the data. Creating a new app involves just…
Abhinit
  • 1,016
  • 7
  • 13
14
votes
2 answers

SSL Connections Issues when running Unit Tests from the command line

Goal Our goal is to execute our Unit Tests within a Continuous Integration environment (Jenkins) (I believe it is essential for every question to state what exactly one is trying to achieve. Maybe the problem can actually be solved a very different…
below
  • 929
  • 6
  • 26
14
votes
1 answer

Running iOS Unit Tests from Command Line with Xcode 4.5

While running Unit Tests from command line (necessary for Jenkins) used to work until Xcode 4.4.1 with this hack, it does not seem to work anymore with Xcode 4.5. Now I get the following error…
fabb
  • 11,660
  • 13
  • 67
  • 111
13
votes
7 answers

How to get the return value of xcodebuild?

I'm using xcodebuild inside a bash script on a continuous integration server. I would like to know when a build as failed in the script, so I can exit prematurely from it and mark the build as failed. xcodebuild displays a BUILD FAILED message to…
Emidee
  • 1,245
  • 1
  • 14
  • 33
13
votes
2 answers

xcodebuild - how to specify the directory where the project is, without doing a cd in it

I am using xcodebuild from command line in a script, but I realized that I cannot specify the path of the project that i wanna build;I am forced to cd in the folder where the project is. Is there a way to accomplish the build process without having…
user393267
13
votes
6 answers

Install iOS app into xcode simulator?

We're iOS (and other mobile platform) developers and our sales folks routinely need to provide demos of our apps for clients. What we're trying to do is automate a process so sales people can go to a self-serve website and feed the app into their…
Matt Rogish
  • 24,435
  • 11
  • 76
  • 92
13
votes
3 answers

How to get a distribution app when using xcodebuild -exportArchive (Xcode8.3, Auto Signing)?

After update Xcode8.3, the options '-exportSigningIdentity', '-exportProvisioningProfile' and '-exportFormat' are removed from 'xcodebuild -exportArchive'. When i try to get a distribution app, i get the error below: xcodebuild: error: invalid…
lailai
  • 161
  • 1
  • 1
  • 7
13
votes
2 answers

xcodebuild 7.3 can't enable bitcode

I'm developing an embbeded framework for iOS. In order to make an universal fat (with simulator and device slices), I created an aggregate target with a script that uses xcodebuild and lipo commands to generate it, as many people does. With XCode…
13
votes
2 answers

Cannot build for simulator with iphonesimulator9.2

I am facing weird errors when trying to build my project for the simulator with xcodebuild (It works fine when building directly with Xcode). 09:54:55 - tito@lt0311 Game> xcrun xcodebuild -verbose -scheme Game -configuration Debug -sdk iphoneos9.2…
Titouan de Bailleul
  • 12,920
  • 11
  • 66
  • 121
13
votes
2 answers

Push IPA to Device via Command Line (after xcodebuild)?

Is it possible to push an IPA to a device via the command line? The IPA was built from the command line using xcodebuild and signed with a developer certificate. The device is not jail broken and was provisioned for development. In the case of a…
jww
  • 97,681
  • 90
  • 411
  • 885
13
votes
3 answers

Xcodebuild Archive Location

I'm currently trying to build an .xcarchive using this command line: xcodebuild -project onething.xcodeproj -target onething archive This places the .xcarchive within a hard to find file location, so I was wondering if there's a configuration to be…
averageUsername123
  • 725
  • 2
  • 10
  • 22
12
votes
0 answers

How to generate unsigned IPAs with Xcode 12

After looking around, I think what I really want to do is generate an unsigned IPA file. I want a setup like pwn20wndstuff/Undecimus, where you can just download the IPA file and install it using Cydia Impactor. I read that with Ad Hoc distribution,…
Parth
  • 2,682
  • 1
  • 20
  • 39
12
votes
1 answer

xcodebuild hangs on Xcode 11 beta, succeeds on Xcode 10

As the name of this post implies, I'm facing build-system issues with the Xcode 11 Beta. I worked since June on an update to my app, but only just recently attemped to archive it for TestFlight. Upon doing so, I found an issue where the archive…
Will
  • 4,942
  • 2
  • 22
  • 47
12
votes
4 answers

xcodebuild -create-framework error: unable to read the file

I have watched "binary framework in swift" and tried to build xcframework using xcodebuild -create-framework but it is not working properly. I enabled "Build libraries for Distribution", then I archived and then used the command xcodebuild…
venky
  • 1,155
  • 1
  • 11
  • 26