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

xcodebuild archive path of newly created archive

When I archive from the command line using xcodebuild archive, how can I get the path to the newly created archive? I'd like to follow on with an -exportArchive command to create an adhoc distribution. I know that I can define an -archivePath,…
toofah
  • 4,455
  • 4
  • 31
  • 42
11
votes
1 answer

No signing certificate iOS Distribution

I'm having trouble generating an IPA for OTA distribution. We made an app for another company. That other company added me on their Enterprise account so that I could distribute using their signing identity. Creating the ipa with the command…
Lyra
  • 301
  • 1
  • 4
  • 19
11
votes
2 answers

Command line option to change Xcode DerivedData location

I know the way to change the location of DerivedData using Xcode (Preferences->Locations->DerivedData..). However the Mac that I am trying to build on is in a remote location with only ssh access. I want to build a specific project where I want to…
Neo
  • 4,640
  • 5
  • 39
  • 53
11
votes
2 answers

xcodebuild equivalent of Xcode's "Product > Build For > Testing"

I'm trying to write a script that submits iOS apps to AppThwack (a 'real device' UI testing service). Their guidance is to use the Xcode GUI and build the app using the Build For > Testing option in the Xcode Product menu. This works, but I haven't…
Jaysen Marais
  • 3,956
  • 28
  • 44
11
votes
2 answers

xcodebuild import XLIFF localization

I just discovered, that Xcode 6's command line tool allows you to export XLIFF localization files using xcodebuild -exportLocalizations -localizationPath Now I'd like to export XLIFF on my CI when pushing to a GIT repo. This would be fairly…
Julian F. Weinert
  • 7,474
  • 7
  • 59
  • 107
11
votes
4 answers

Timed out waiting 120 seconds for simulator to boot

It looks like Teamcity agent (TC version is 9.0 EAP) has issues with launching iOS Simulator via testing shell script. I use Build Step: Command Line, which runs Custom Script and passes params to it. Teamcity agent is launched on Mac OS X Yosemite…
sig
  • 6,024
  • 2
  • 26
  • 31
11
votes
2 answers

Tool for displaying the contents of a Provisioning Profile (.mobileprovision) file?

I have the dreaded Code Sign error: No matching provisioning profiles found: This product type must be built using a provisioning profile, however no provisioning profile matching both the identity “Foo, Inc” and the bundle identifier…
Robert Atkins
  • 23,528
  • 15
  • 68
  • 97
11
votes
2 answers

Can't generate release build for Cordova iOS App

I am using Phonegap CLI 3.1 and XCode5. I want to generate the release build for iPhone Application through command line, I have valid distribution certificate and mobile provisioning profile. I want to generate the release build totally through…
Aarush
  • 493
  • 1
  • 4
  • 12
11
votes
1 answer

Get exit code for eval command in sh

I'm trying to create a function in a shell script that takes a command and executes it using eval, and then does some post-processing based on the success of the command. Unfortunately the code is not behaving as I would expect. Here's what I…
Jeff
  • 623
  • 3
  • 8
  • 22
11
votes
3 answers

How to add "Other Linker Flags" to xcode project using command line?

I'm trying to automate building process of xcode project. The problem is that I need to add "Other Linker Flags" when building the project. I can't just add it to the project Build Settings manually, I have to do it using the command line. May be I…
almas
  • 7,090
  • 7
  • 33
  • 49
10
votes
5 answers

CODE_SIGN_IDENTITY parameter for xcodebuild (Xcode 4)

I'm using xcodebuild utility shipped with Xcode 3 to automate my builds under Hudson. The command looks like it follows: xcodebuild -project Project.xcodeproj -target Target -configuration Release -sdk iphoneos…
Dmytro
  • 2,522
  • 5
  • 27
  • 36
10
votes
1 answer

Xcode preprocessor dependent on environment variable

I have a configuration that I'd like to dynamically control a preprocessor defined value through an environment variable. Is this possible? if it is how do I set in the preprocessor define table that I want to set the value based on the environment…
cynistersix
  • 1,215
  • 1
  • 16
  • 30
10
votes
2 answers

xcodebuild -list can not find scheme which existed

I have xcode project, I want to build this project under command line, this project composed many sub-project, first I fetch these source files to local disk, I use xcodebuild -list to find scheme, I can not find anything, while after I manually…
Frank
  • 811
  • 2
  • 9
  • 17
10
votes
5 answers

Debugging exception thrown in Objective-C and Xcode

I am a long time Microsoft developer and I am new to iPhone development using Xcode. So, I am reading a book and going through examples trying to teach myself how to write an iPhone application using Objective-C. All has been good so far, however,…
rtemp
  • 157
  • 2
  • 8
10
votes
3 answers

“ExportOptions.plist” couldn’t be opened because there is no such file.”

We are trying to run the project using terminal instead of Xcode->Product->Archieve. We have completed the clean, build and archive successfully. When export .ipa I am getting this following error “The file “ExportOptions.plist” couldn’t be opened…
HariKarthick
  • 1,369
  • 1
  • 19
  • 47