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

Weird ViewControllers - iPhone SDK

I have a Tab-Bar Application for this iPhone application I am making. I make a simple button on the 3rd view (3rd tab), and give it an IBAction to give an alert view. When I press build and go, everything works out fine. I go onto the 3rd tab, and I…
lab12
  • 6,400
  • 21
  • 68
  • 106
0
votes
1 answer

Can't copy files to the Products Directory in Xcode

I need to replace the Copy Files build phase with the manual copy files via Run Script build phase. Copy Files stage looks like this now: The replacement script looks this way: but the destination dir is not correct. What is the correct absolute…
ShurupuS
  • 2,923
  • 2
  • 24
  • 44
0
votes
2 answers

xcodebuild + iPhone fail under ssh with Couldn't load plug-in 'com.apple.Xcode.iPhoneSupport'

I'm triying to compile my iPhone app from ssh. This is for my build tool that run in another machine. The base sdk is iPhone Device 3.0. The error is : "Couldn't load plug-in 'com.apple.Xcode.iPhoneSupport'" However, executing from the regular…
mamcx
  • 15,916
  • 26
  • 101
  • 189
0
votes
1 answer

Can't run Kiwi tests (XCTest) in xcodebuild (Xcode 6)

I'm trying to run my tests using the CLI tools. After following various guides, I came up with this command: xcodebuild -workspace myworkspace.xcworkspace -scheme testsScheme -sdk iphonesimulator -arch i386 -configuration Debug TEST_AFTER_BUILD=YES…
ShayDavidson
  • 717
  • 1
  • 7
  • 20
0
votes
2 answers

Codesigning failed when building app from terminal

I'm trying to build my app using xcodebuild command in the terminal. It's failing to do so however, and giving me this error: CodeSign build/Release-iphoneos/frameworkname.framework cd /path/frameworkname export…
Hafax
  • 369
  • 2
  • 14
0
votes
1 answer

Order of library search path entries

I have created a Cordova project. For iOS Cordova generates two XCode projects: an application project, and inside the application project a CordovaLib project is created. To use maven I am trying to substitute the CordovaLib project with a static…
Androrider
  • 1,050
  • 2
  • 13
  • 20
0
votes
0 answers

How do I redirect stdout to 2 files and a command and stderr to 2 files, a command and the console

I have this existing command: xcodebuild | tee "$MY_TEMP_FILE_PATH" >> "$MY_LOG_FILE_PATH" i.e. stderr -> log file temp file normal console output stdout -> log file temp file (no normal console output) I…
Robert
  • 37,670
  • 37
  • 171
  • 213
0
votes
1 answer

Target build settings in Project build settings in Xcode

Can we set the build settings for different targets in the project build settings in xcode?
PrithviRaj
  • 571
  • 1
  • 7
  • 15
0
votes
1 answer

Parsing xcodebuild -showsdks for build script

I'm writing a build script for build automation. I'm going to want to run the build script under different versions of Xcode. (eg. 6, 5.1.1, 6.1b). However, each of these will display a different list for -showsdks, as a result the available sdk may…
Dru Freeman
  • 1,766
  • 3
  • 19
  • 41
0
votes
0 answers

using xcodebuild with xcode 6 for ad hoc build crashes unless "clean"

i use xcodebuild for automated builds and i have found that with the new xcode 6, if i don't "clean" between two ad hoc builds, the build crashes when it gets on the device almost immediately. the stack trace looks like this: Last Exception…
john ellis
  • 2,152
  • 2
  • 15
  • 13
0
votes
1 answer

how to manage 3000+ sound files

This is more of a management issue... Anyway We're currently making quiz-like game which, well includes a LOT of sound files, and it's bogging down xcode. It's so slow that scrolling up and down takes minutes.
iced
  • 1
  • 1
0
votes
1 answer

XCode project version bump, is there automated way?

I would like to know if there are any automated ways to bump up the version number of an xcode project? I was using Jeweller with Ruby which has really nice command line option to bump up the version number on a project. The option were major,…
Ross
  • 14,266
  • 12
  • 60
  • 91
0
votes
1 answer

Terminal Command build xcode project for 64 bit with all other also

I am using below command : xcodebuild -project $PROJECT_NAME.xcodeproj -scheme $PROJECT_NAME -sdk iphonesimulator -configuration Debug xcodebuild -project $PROJECT_NAME.xcodeproj -scheme $PROJECT_NAME -sdk iphoneos -configuration Debug for building…
Sammy
  • 13
  • 3
0
votes
1 answer

How to detect which test case has failed?

I have around 300 test cases in my app and when I run them through terminal using with the following command xcodebuild -project GiaPet.xcodeproj -scheme GiaPet -sdk iphonesimulator clean build test tests starts running and in the very end I…
Ashutosh
  • 5,614
  • 13
  • 52
  • 84
0
votes
1 answer

Building XCode projects with Jenkins

I have a XCode projects with target dependencies, which build without issues via XCode and xcodebuild. I'm creating an automated build with Jenkins and having issues with paths to dependent files. The first project is independent with the following…
TheDarkKnight
  • 27,181
  • 6
  • 55
  • 85