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

xcode template with run script build phase requires root

I'm trying to configure a custom xcode template for building Apache 2.2 modules in xcode. Everything seems to be working okay so far, except the most important bit: the custom build settings. I currently have my template configured so that my target…
0
votes
1 answer

How to make xcodebuild test recognize classes in the main app target

In my main target, I have a MyClass class. Then I try to access this class in my simple test case. #import #import #import "MyClass.h" @interface TryXcodeBotTests : XCTestCase @end @implementation…
Hlung
  • 13,850
  • 6
  • 71
  • 90
0
votes
1 answer

Php run xcodebuild cannot find provisioning profile

I wanna run a server to build ipa for me.When it comes to use Xcode to build app use these command: /usr/bin/xcodebuild -project…
0
votes
0 answers

Installing and finding older versions of the iOS SDK

I'm trying to build for iOS 7 from the command line using a makefile, but I have already installed 8.4 SDK. I followed the standard procedure to install it using Xcode and it seems to be installed, as shown in the screen shot below. However, when…
André Fratelli
  • 5,920
  • 7
  • 46
  • 87
0
votes
2 answers

How can I take values from textbox and assign it to integer variable in Xcode?

how can I convert the valuesof textbox to numeric? here's what I'm doing: int el = electric.text; int wb = waterbill.text; int inet = internet.text;
torqueabhi
  • 7
  • 2
  • 5
0
votes
1 answer

Instrument error: Undefined symbols for architecture x86_64:

i try to build my app with the xcodebuild command but i got an error. Here is my command: xcodebuild clean build -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO -workspace APP.xcworkspace -scheme APP-SCHEME CONFIGURATION_BUILD_DIR=/PATH Here the…
emoleumassi
  • 4,881
  • 13
  • 67
  • 93
0
votes
1 answer

Invalid Code Signing Entitlements on ITC after code signing with xctool and xcodebuild in build scripts

I'm writing some build scripts for a continuous-integration situation where the code will be deployed on another machine, and needs to be able to build and correctly sign an Xcode Project, followed my a scripted upload to ITC. So far I was able to…
Miro
  • 5,307
  • 2
  • 39
  • 64
0
votes
0 answers

Build CocoaPods into single library

I want to build my CocoaPods libraries into single library (or even multiple will also be OK) in order to: Freeze pod libraries versions Reduce build server build time (building libraries takes a lot of time) Is there a way to build CocoaPods…
user3237732
  • 1,976
  • 2
  • 21
  • 28
0
votes
1 answer

Can't run xcodebuild as root

I'm running Xcode 6.4 and trying to build my project using the command line. This works fine without using sudo: xcodebuild -workspace "project.xcworkspace" -scheme "project" results in Build Succeeded. However: sudo xcodebuild -workspace…
davis
  • 1,911
  • 6
  • 26
  • 50
0
votes
1 answer

about ADHOC build -getting error when i install it to my device

signer is not valid.. i noticed while i am setting up settings for build i didnt see release option in my project info->configaurations, we have to duplicate releases option and place distribution here can any one send me solution for this...
Linux world
  • 3,750
  • 11
  • 44
  • 59
0
votes
1 answer

Xcode 6.4 simulator does not need LaunchAgent workaround any more?

From this answer I did some workaround https://stackoverflow.com/a/26031521/677596 for xcode 6.3 and below You can also use launchd for running tests on the iOS simulator from a SSH session, either by crafting a LaunchAgent and manually loading…
ssb
  • 209
  • 6
  • 16
0
votes
1 answer

Accessory View in UITableView

I have a doubt in accessory view in UITableView. The doubt is Is it possible to add more than one button in UItableviewcell using accessryView if so plz guide me. thanks in advance
0
votes
1 answer

Xcode command line install to device

I am trying to install an app from XCode onto my device from the command line. I have tried several of the "xcodebuild" command line options which do build, clean, install, etc fine. I have also searched for various solutions. I was able to…
AMC08
  • 181
  • 1
  • 9
0
votes
1 answer

Xcodebuild code signing error on Jenkins

I get the following code signing error when trying to build my app using xcodebuild on jenkins Code Sign error: No code signing identities found: No valid signing identities (i.e. certificate and private key pair) matching the team ID “xxxxxxxxxx”…
mattman88
  • 475
  • 1
  • 8
  • 22
0
votes
0 answers

Can I emulate the effect of ENABLE_BITCODE on the iOS build process?

I understand that ENABLE_BITCODE will build the executable with LLVM bitcode so that the App Store can compile it to arm64 or armv7 before delivering to devices. Naturally many developers will depend on open and third party licensed source code…
Joey Carson
  • 2,973
  • 7
  • 36
  • 60