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

Unable to archive project with xcodebuild command: code sign error, missing provisioning profile?

I'm using Xcode 6.4 and the associated command tools. I'm trying to archive to create the ipa of my app with the command: xcodebuild -scheme MyScheme -archivePath MyProjectName archive But I get this error message: Check dependencies Code Sign…
AppsDev
  • 12,319
  • 23
  • 93
  • 186
0
votes
2 answers

Shell script with NSTask doesn't work

I have a command (xcodebuild) that if I try in terminal it works very well. When I try to put it on my code: let xcodeProjectPath = "/Users/xxx/Desktop/Code/xxx.xcworkspace" let xcodeArchivePath = "/Users/xxx/Desktop/xxx.xcarchive" let schemeName =…
user3914418
0
votes
3 answers

iPhone release build memory error

I get this error when I try to build a release version of my app. It throws an error for a single file that is fairly large, but nowhere near 400+MB (in the KBs) Out of memory allocating 455627472 bytes after a total of 0 bytes Command…
Zac Altman
  • 1,215
  • 4
  • 25
  • 37
0
votes
2 answers

iOS project fails to compile under xcodebuild for deployment target 7.0, but is fine for 6.0. Compiles for both under Xcode

I have an iOS project that has iOS 6.0 as a deployment target. It builds fine both under Xcode and xcodebuilder (necessary for CI). However the client now wants the project to only be available for users who have iOS7+ installed. No problem, I'll…
Gareth
  • 121
  • 1
  • 10
0
votes
2 answers

Using xcodebuild to auto-compile iOS

I've been reading (and searching) about xcodebuild for a few days now. I've got a template for an iOS app that swaps out a few user-defined variables like Icons, URLS, and an app name in order to produce a different app. I'd like to use a PHP…
0
votes
1 answer

Xcodebuild showSDKs shows different available iOS sims than Xcode 6.3 GUI

OSX 10.10.1 Xcode 6.3 or 6.3.1 xcodebuild version "Xcode 6.3.1" This happened on one machine and I thought it was a fluke. Has now happened on two machines. I have followed the advice in Why aren't simulators showing in the Xcode 6.3.1 scheme…
jwallis
  • 75
  • 1
  • 9
0
votes
3 answers

Xcodebuild throws assert failures after successful build?

I'me getting the following after building from he command line using xcodebuild, ay ideas what might be wrong? ** BUILD SUCCEEDED ** 2010-06-06 20:20:12.916 xcodebuild[8267:80b] [MT] ASSERTION FAILURE in …
drekka
  • 20,957
  • 14
  • 79
  • 135
0
votes
1 answer

build iOS for iphonesimulator for 64x and 32x

I'm trying to build a framework that will work with iphonesimulator on both 64-32x. The command i'm executing is: xcodebuild -target mypack -sdk iphonesimulator8.1 -configuration Release -arch i386 For some reason it's threw me an error when i'm…
Avi Levin
  • 1,868
  • 23
  • 32
0
votes
1 answer

Build os x tool as part of iOS project without breaking xcodebuild archive?

Each time I build my iOS project, I'd like to it also build a couple OS X projects. These are command line tools. I don't care if they're included in the Archive, I just want to make sure they compile correctly each and every time. They're little…
Steven Fisher
  • 44,462
  • 20
  • 138
  • 192
0
votes
2 answers

Ad Hoc Distribution

This is the error generated when i drag App file and Mobile Provision File into the iTunes and sync it. The application '" was not installed on your iPhone "" because it is not signed".
Taimur Ajmal
  • 2,778
  • 6
  • 39
  • 57
0
votes
1 answer

iPhone submission: "The binary you uploaded was invalid. A pre-release beta version of the SDK was used to build the application"

I have Xcode 3.2.3 (Pre-release) and an iPhone with OS 4. I just finished my game using Cocos2d for iPhone OS 3, and I want to put it on the AppStore. I followed this tutorial Building Your App for Distribution, and when I upload my .zip file, I…
pimpampoum
  • 5,816
  • 6
  • 24
  • 27
0
votes
1 answer

TeamCity Xcode Build Runner Configuration (Command Line)

I'm trying to setup a continuous build server with TeamCity and configure it so it can run "xcodebuild -configuration release -sdk iphoneos3.0 clean build". i installed the plugin for teamcity-xcode integration and for the 'Build Runner' settings, i…
Alex Nguyen
  • 2,820
  • 1
  • 19
  • 14
0
votes
1 answer

Why when generating .app file, xcode needs to be open?

I'm writing a script to build and generate an .app file from an specific target and scheme (to work with simulator). I was using something like: DEVELOPER_DIR=$xcode_app_path/Contents/Developer xcodebuild -sdk iphonesimulator -scheme "${SCHEME}"…
Sophy Swicz
  • 1,307
  • 11
  • 21
0
votes
1 answer

Xcodebuild is not creating an app

I'm trying to create a simulator app to submit to Facebook for review. I've followed their instructions to the letter, but keep running into problems. I am using CocoaPods and have a workspace instead of a plain old project. Here's the command I'm…
swilliams
  • 48,060
  • 27
  • 100
  • 130
0
votes
3 answers

xcodebuild command fails building for device since upgrade to Xcode 6.1

I cannot build my project for the device although XCode can build without any issue given the same settings. Here is the build command: /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -workspace /path/to/workspace/myProject.xcworkspace…