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

Possible to make xcodebuild test show the compilation of the test

xcodebuild -workspace aWorkspace -scheme aScheme test both compiles and runs the tests associated with the scheme, but it doesn't show the compilation of the test suite. If there is a compilation error in a test source file, I only get ** TEST…
Andreas Järliden
  • 1,884
  • 1
  • 17
  • 16
0
votes
2 answers

iPhone: Using static library in an application crashes the device but not the iphone simulator

I have a library I made, and now I want to utilize it in an application. I've believe I've properly linked to the library. Here are all the things I've done: Set the header search path Set other linker flags to "-ObjC" Added the static library…
devinross
  • 2,816
  • 6
  • 34
  • 34
0
votes
5 answers

Cannot link in XCode when compiling for iPhone

somehow I managed to screw up my XCode project settings when compiling for the iPhone. It fails when linking saying that ld: warning: in…
Ben
  • 1,922
  • 3
  • 23
  • 37
0
votes
1 answer

View failures when building with xcodebuild

We are building multiple targets with xcodebuild, but from the command line, all we get is failures like so: The following build commands failed: CompileC MOAIFmodExChannel.o ../../src/moaiext-fmod-ex/MOAIFmodExChannel.cpp normal i386 c++…
typeoneerror
  • 55,990
  • 32
  • 132
  • 223
0
votes
4 answers

Objective-C syntax checker

Is there an Objective-C syntax checker? I have tried gcc -fsyntax-only but it is not really 'syntax only'. It still produces errors if run on an individual implementation file which has references to external frameworks. I am looking for something…
firstresponder
  • 5,000
  • 8
  • 32
  • 38
0
votes
1 answer

Checking for Errors Running xcodebuild (Command Line) for iOS

I'm currently working on a script to build my iOS projects. I am able to run the archive command using... xcodebuild -workspace -scheme 'archive' But what is the best way to check for errors? If there is a way to do…
jhuynh
  • 1,709
  • 2
  • 10
  • 4
0
votes
1 answer

xcode build setting group

I'm using XCode4 to create some projects. It seems that, different type of target comes with different configure group. Example for: If the target is STL C++ Library or Cocoa Library, there comes some config groups related with Apple LLVM compiler…
idy
  • 368
  • 3
  • 9
0
votes
0 answers

Using "Build Xcode Project.action" in automator

I successfully used xcodebuild to build my project in a bash script. I'm trying to port my script into automator, so I'm trying to take benefit using the "Build Xcode Project.action" In the bash script, I move to folder where project is and run the…
giampaolo
  • 6,906
  • 5
  • 45
  • 73
0
votes
1 answer

NSUserdefaults using xcodebuild

xcodebuild has a parameter -userdefault=value. How can I use it to set NSUserDefaults ? Do I have to specify a file/plist?
Mann
  • 2,118
  • 1
  • 18
  • 18
0
votes
1 answer

XCode: Change xcarchive folder and file name

I'm generating the .xcarchive file from the command line, using: xcodebuild -scheme fullxsTest archive CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO This puts the file in... /Users/name/Library/Developer/Xcode/Archives/2012-09-12/App 10-09-12…
Zoltán Matók
  • 3,923
  • 2
  • 33
  • 64
0
votes
1 answer

xcodebuild archive with Skip Install

My XCode project contains subproject (static library). In this static library project's settings Skip install option is set to YES. I want to make an archive of my project. At this moment I can do this with command xcodebuild -scheme MyScheme -sdk…
0
votes
1 answer

iOS App Building Server

I'd like to set up an OSX server that could build iOS apps on behalf of multiple developers. (The developers would provide data used to modify a template app project in defined ways to produce the project that is built.) Each developer would…
devx
  • 307
  • 1
  • 14
0
votes
1 answer

apple mach-o linker (id) error getting confused with this

I just opened my project which was made in xcode 3.1.5 version in xcode 4.2 and am getting the following error's can anyone please help me in this regard. 1) Ld…
user1184202
  • 159
  • 1
  • 3
  • 11
0
votes
2 answers

Set the DerivedData location in the same folder as project

I have a workspace with 3 different targets, for one of them I need to get the result of the build inside the folder where my code is. I also need to build this using xcodebuild, I've been researching trying to find if there is some flag or…
Andres
  • 11,439
  • 12
  • 48
  • 87
0
votes
1 answer

Cannot deploy xcode project in iphone

I would need your help if possible please. I'm trying to deploy axcode project in an iphone. I followed all the steps, but when i try to deploy it i get this message: Choose a destination with a supported architecture in order to run on this…
Al_12
  • 15
  • 5