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
2 answers

IOS architectures and framework creations

What should be the architectures for the framework/library building for IOS devices? Is i386 relevant architecture for an ios framework? A framework consist of headers files and an archive file. How can we create this archive file? Now when I build…
Vivek Mohan
  • 8,078
  • 8
  • 31
  • 49
0
votes
1 answer

Xcode acting strange

I am typing code from Head First iPhone Development (O'reilly) and Xcode will build and run fine once and then, without any modification to the code, the second build will fail. Why?(I'm using command+R) EDIT: the first error was something similar…
Moshe
  • 57,511
  • 78
  • 272
  • 425
0
votes
1 answer

Running Xcodebuild on user supplied code. Could this be insecure on my server

Part of my application allows users to submit their xcode projects to my server and then we will compile them and run various tests. Right now we've been testing this with several hundred trusted people, but I am wondering if we need some kind of…
user3583341
  • 91
  • 2
  • 4
0
votes
1 answer

Automate Xcode Simulator: how to build and launch an app from terminal

Is there a way to build an application for the iPhone, and have it running in the simulator, but using just the console? I am trying to test an app, that will launch; send some data and then quit; if I run it via Xcode, it works fine; the simulator…
user393267
0
votes
2 answers

"You can’t open the application because it is not supported on this type of Mac." xcodebuild

When I try to build my xcode project using the following command: xcodebuild -workspace "Converse.xcworkspace" -sch eme "Converse" -configuration “Debug” -sdk iphonesimulator7.1 -arch i386 ONLY_ ACTIVE_ARCH=NO It builds fine, but when I try to…
heinst
  • 8,520
  • 7
  • 41
  • 77
0
votes
1 answer

Xcode: Can't Build Downloaded Project because Compiler Cannot Find a Framework

I'm new to this so please make allowances. I'm trying to build Audioslicer which seems to need a framework called IntervalSlider. The IntervalSlider build fails with: framework not found InterfaceBuilderKit. However, the framework seems to be…
Brian
  • 1
0
votes
1 answer

Crontab shellscript xcodebuild is not creating .app or .ipa file

I've got a crontab running a shell script for an automated build of an ios app. Running the shell script from the command line compiles and builds the .ipa with no issue. But when the crontab runs the shell script, the app gets compiled but does…
mylegfeelsfunny
  • 507
  • 1
  • 8
  • 20
0
votes
2 answers

Post script target build phase in Xcode how to embed a build version?

In Xcode, I've added a script target build phase so I can run an arbitrary script upon a successful build of my project. Where I'm stuck is, I'm trying to get the version of our build passed into the script by any means.. it looks like the only way…
randombits
  • 47,058
  • 76
  • 251
  • 433
0
votes
1 answer

how to invoke terminal.app from a php script?

I want to invoke terminal.app from a php script is this possible if not then how do we invoke terminal using applescript/shell script. I want to use php because there is no other option for me. also after invoking terminal i want to navigate to a…
Rahul Vyas
  • 28,260
  • 49
  • 182
  • 256
0
votes
0 answers

Building and running mac command line application from terminal

I have a Mac command line application, built with XCode. Is it possible to build and run the relevant target from the terminal?
Erik Sapir
  • 23,209
  • 28
  • 81
  • 141
0
votes
1 answer

How to downgrade xcodebuild?

My current project is incompatible with xcodebuild 5.1 so I'm trying to downgrade xcodebuild from 5.1 to 5.0 on my MBP with Mavericks 10.9.1. But I can't find a solution.
user2901800
  • 49
  • 1
  • 4
0
votes
1 answer

Regexp all characters between CompileC and -o

I need extract compile flags from xcodebuild output, So I want to get characters between "CompileC" and "-o" I tried to do as in question described Regex Match all characters between two strings I am using NSRegularExpression CompileC.*?\-o (match…
BergP
  • 3,453
  • 4
  • 33
  • 58
0
votes
1 answer

xcodebuild not work in php but works fine in command line

As the title, I want to build the app with xcodebuild. Unexpected, the code bellow is not work in php but works fine in Command Line Tools: echo '########' . exec('xcodebuild -list') . '########'; I check the permission of the files is 777, is the…
Lee
  • 1
  • 1
0
votes
2 answers

Unit tests using xcodebuild from another machine

I have been going around in circles with this. Basically I have Jenkins on one machine, and a Mac server as a separate iOS build server. I need to be able to run unit tests and then code coverage from Jenkins on the Mac Mini. I have a script which…
benny_bates
  • 65
  • 1
  • 6
0
votes
1 answer

How to get the app path name from an Xcode project on the command line?

I'm writing a build script to compile and package my app, and I'd like a nice way to get the full path name of the .app created. I can't find any command line tools other than xcodebuild, which doesn't appear to have much in the way of inspecting an…
Jesse Beder
  • 33,081
  • 21
  • 109
  • 146