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

Is an OS X server necessary or preferable for doing CI iOS builds using Jenkins?

I'm currently investigating whats required and how to set up an automated CI build system for creating iOS apps. The intention is to use Jenkins as thats currently being used for other OS builds. Does the OS X build machine need to be an OS X Server…
Gruntcakes
  • 37,738
  • 44
  • 184
  • 378
0
votes
1 answer

App won't run on iOS 4.2, Architecture issue

I have an app that I developed in Xcode 4.3.2. I am using the base SDK as 5.1. The app installs fine in iOS 5.0 and above. But I need to support iOS 4.0 and above. The compiler I am using is Apple LLVM compiler 3.1. I have added both armv6 and armv7…
Bani Uppal
  • 866
  • 9
  • 17
0
votes
1 answer

Why am i getting library not found for -lz.1.2.3 error in Xcode 4.3.3?

I installed Xcode 4.3.3. Before i was using Xcode 3.2.6. Now when i try to install my app which i made in Xcode 3.2.6 to my iPhone 4S then i get following error: Ld…
Piscean
  • 3,069
  • 12
  • 47
  • 96
0
votes
1 answer

xcodebuild on jenkins

I am getting frustrated with this and will really appreciate any help We set up jenkins for our CI environment on Mac OSX for building our xcode project. Configured everything with SVn so that it syncs and all but when it comes to build Code Sign…
0
votes
1 answer

xcodebuild cause fatal error but in Xcode, compilation is OK

I have a weird thing when I try to compile with xcodebuild. If I open the project on the mac with XCode, the code compile without any warning. If I use the following command line : xcodebuild -configuration Debug -target myApp…
SlumTheSlug
  • 115
  • 13
0
votes
1 answer

xcode 4.2 can't run app

I'm trying to build my app on my iPhone 4 but i keep getting this same error. It has bein run before and has worked fine but i changed my icons and now this is what i get. Command…
Development
  • 217
  • 1
  • 2
  • 5
0
votes
0 answers

debugging XCode memory issues when running from command line

I am attempting to debug a standard run-of-the-mill "incorrect checksum for freed object - object was probably modified after being freed" memory issue in my application. I'm pretty familiar with the tools to find the cause (guard malloc, etc.) and…
Locksleyu
  • 5,192
  • 8
  • 52
  • 77
0
votes
1 answer

iPhone build lite and full versions - adMob problem

I'm traing to build a lite version for my app the way it is described in this post: How do I manage building a Lite vs Paid version of an iPhone app? After creating the two targets the full version can be built the lite version stops building with…
levi
  • 2,035
  • 3
  • 16
  • 11
0
votes
1 answer

How to link Facebook to Iphone App using Xcode

I'm using version Xcode 4.3 . At this stage I have a very basic App, so I have no conflicting features of elements. I was wondering does anyone know how to link facebook to the Iphone App using Xcode. I want a simply Login Feature through the…
0
votes
1 answer

Custom run script error in Xcode

I'm trying to write a custom script as a separate build step in Xcode. To do that I've created Run script build phase. However I receive an error on this simple line (that's all I have in my script): INCLUDE_PATH = $CONFIGURATION_BUILD_DIR/include…
givi
  • 1,883
  • 4
  • 22
  • 32
-1
votes
2 answers

How to check whether xcodebuild succeeded in the post-action shell?

Is there any way to check if xcodebuild is successful in the post-action shell? I want to run a custom script only when the build succeeds. I checked env vars with the set command in the post-action shell, but couldn't find a suitable var.
JeHeon Choi
  • 3
  • 1
  • 2
-1
votes
1 answer

Is Xcode xcframework more secure from reverse engineering than a static lib .a?

We have an Xcode static lib with a single Swift public access func and a bunch of private C. Would it be less vulnerable to reverse engineering to use "xcodebuild ... -library ..." to import the static lib into an Xcode framework (ie. xcframework)…
Doug Null
  • 7,989
  • 15
  • 69
  • 148
-1
votes
1 answer

Is it possible to run an Xcode Build Phase Script when running xcodebuild from the command line?

I have a build phase Run Script in my Xcode project that is required for ensuring the module bundle is up to date. The script runs when actions are executed through the Xcode GUI, and the Swift Package is able to build and run tests successfully.…
Liam
  • 108
  • 5
-1
votes
1 answer

How can i create a .pkg mac installer for my binary?

I have a binary file, foo. Built using vercel/pkg. I would like to bundle this in an installer for mac; A .pkg installer file. It should install the binary in /usr/local/bin/foo. Attempt: $ cd Desktop // <--- foo binary is here $ pkgbuild…
johann1301s
  • 343
  • 4
  • 19
-1
votes
1 answer

Bash - Pass multiple array arguments from script

I am using XcodeCoverageConverter to convert XCResult to Cobertura XML as per the instruction provided in the README file. It is working as expected when only one item was passed as value for --exclude-packages. However when I try to pass an array…
Vignesh
  • 3,571
  • 6
  • 28
  • 44
1 2 3
92
93