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
22
votes
7 answers

install application in iphone device through command line

I'm using xcodebuild install -alltargets -iphoneos4.2 -activeconfiguration provisioning_profile=path_of_my_provisioningprofile code_sign_identity=identity. This command is building my app and i am getting build file (.app) also. But how to install…
sri
  • 237
  • 1
  • 2
  • 4
22
votes
3 answers

XCFramework with Pods Dependencies

Our goal is to create a framework that hides our internal code and provide SDK to our customers. We have thought of creating XCFramework which fulfills our requirement. Umbrella framework is also suggested over the internet but mostly suggested to…
Bhavin Vaghela
  • 654
  • 1
  • 5
  • 19
22
votes
2 answers

xcodebuild commands give different results when run from the command line than when run from within Jenkins

I'm setting up a CI system using Jenkins and was finding that the build was failing because xcodebuild reports there are no schemes when I was executing the line -xcodebuild -workspace XXX -scheme NNN. I couldn't figure out why this could be…
Gruntcakes
  • 37,738
  • 44
  • 184
  • 378
21
votes
2 answers

How can I build a Swift Package for iOS over command line?

In Xcode, I can select my destination as a "generic iOS device" or any iOS simulator, and my package will build platform-specific code for ios. Via command line "swift build" only builds my target for macOS. I want to build the target for iOS for CI…
Michael
  • 1,115
  • 9
  • 24
21
votes
1 answer

Build and run an app on simulator using xcodebuild

I have the following goal to achieve: build and run an .app application using xcodebuild and ios-sim. I'm using the following script to build the application. xcrun xcodebuild \ -scheme $XCODE_SCHEME \ -project $XCODE_PROJECT \ -configuration…
Lorenzo B
  • 33,216
  • 24
  • 116
  • 190
21
votes
6 answers

Xcode, Codesign Error from Jenkins / SSH - "User Interaction is not allowed"

I am trying to run an automated xcodebuild on Jenkins, but I am running into the error User interaction is not allowed. Command /usr/bin/codesign failed with exit code 1 I have already referenced "User interaction is not allowed" trying to sign an…
reyes20
  • 211
  • 1
  • 2
  • 4
21
votes
5 answers

xcodebuild - codesign -vvvv says"resource envelope is obsolete"

I've just updated my xcode install to use xcode 6.0.1 in order to start compiling my app for ios8 devices. For some reason I am not able to ever sign the app file correctly that is generated using the following: xcodebuild -project…
Grantism
  • 374
  • 2
  • 3
  • 11
21
votes
3 answers

Xcode with iOS - Creating a library in a way that is easy to run in debug mode, distribute, iterate

This is for Xcode 4.5.x iOS armv7 armv7s and the sim and specifcially about Xcode project setup / project build setup: I have a project "A" that is an app in the app store. I have a project "B" that is a library that will be used in A as a…
jpswain
  • 14,642
  • 8
  • 58
  • 63
21
votes
1 answer

Is it possible to use xcodebuild on linux?

Say I've got an Xcode project on a linux machine and I want to, like I can do on the Mac, install & use xcodebuild to simply compile the project, not to run it or anything fancy, just simply to compile it to check for errors. Is it possible to…
Joshua
  • 15,200
  • 21
  • 100
  • 172
20
votes
2 answers

Xcodebuild - Skip Finished requesting crash reports. Continuing with testing

I'm running a CI machine with the Xcode. The tests are triggered using fastlane gym. I see this line in the output: 2019-05-27 16:04:28.417 xcodebuild[54605:1482269] [MT] IDETestOperationsObserverDebug: (A72DBEA3-D13E-487E-9D04-5600243FF617) …
Richard Topchii
  • 7,075
  • 8
  • 48
  • 115
20
votes
7 answers

Separate build directory using xcodebuild

The man page for xcodebuild reads: Run xcodebuild from the directory containing your project (i.e. the directory containing the projectname.xcodeproj package). I would like to keep my source directory (which is a Subversion external) clean…
Dave Mateer
  • 17,608
  • 15
  • 96
  • 149
20
votes
11 answers

Code=53 "Simulator verification failed."

Since I updated to XCode 6.2, when I try to run xcodebuild -project Demo.xcworkspace -scheme Demo clean build test I'm always getting: iPhoneSimulator: SimVerifier returned: Error Domain=NSPOSIXErrorDomain Code=53 "Simulator verification failed."…
marius bardan
  • 4,962
  • 4
  • 29
  • 32
20
votes
5 answers

Unable to execute tests from command line via xcodebuild

I am trying to build and run test cases using command line for iOS test cases. I have given the following command: xcodebuild -target AppEngineTests -configuration Debug -sdk iphonesimulator TEST_AFTER_BUILD=YES clean build It builds the app but…
Sunny
  • 7,444
  • 22
  • 63
  • 104
19
votes
1 answer

In an Xcode 4 workspace, how do I cascade build settings & configs to subprojects

Overview I'm using static libraries and Xcode 4 workspaces to effect modularity in iOS development, an increasingly common technique. For example, I might have a workspace which contains an App project, and a Library project, like so1: You would…
Clay Bridges
  • 11,602
  • 10
  • 68
  • 118
19
votes
3 answers

No member named 'cancelButtonTintColor' in 'JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions'

Description How to fix this error. I have created simple project with latest version and when try to build the project via Xcode it generate error? Version 0.67.3 Output of npx react-native info OS: macOS 11.5.2 CPU: (8) x64 Intel(R) Core(TM)…
Muhammad Ashfaq
  • 2,359
  • 5
  • 20
  • 46