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

Mimicking xcode's build process through xcodebuild

I'm looking to build + run my iphone xcode project totally outside of xcode. Currently I'm using xcodebuild to build the project - which seems to build cleanly: https://gist.github.com/8eadfb1acca4d101624b Unfortunately it doesn't seem to replicate…
smtlaissezfaire
  • 437
  • 2
  • 7
  • 18
0
votes
1 answer

xCodeBuild command line/ code signing fail

I was using xcrun with Xcode 6.3 and I wasn't getting any issue.
Sami
  • 572
  • 8
  • 22
0
votes
1 answer

xcode 7: Building for enterprise and adhoc with the same archive

Currently using the xcode 6 build process, we first create the xcarchive with the following command xcodebuild -workspace OurApp.xcworkspace -scheme MainScheme \ clean archive -archivePath OurApp.xcarchive -sdk "iphoneos" \ -configuration…
piyushg91
  • 111
  • 1
  • 13
0
votes
2 answers

Running clang static checker at project level (iOS app) rather than file by file (xcodebuild)

After solving this Omitted code blocks from clang AST for ObjectiveC, I've tried it on a small Objective C .m file along with an appropriate compile_commands.json and it works properly and I get the entire syntax tree. Now I'm trying to see if it's…
Jeremy Kuah
  • 519
  • 1
  • 6
  • 18
0
votes
1 answer

Performing in command line what Xcode does when you run a build

Is it possible to perform on the command line what Xcode does when you build and run against a iPhone which is hooked up through USB. I am trying to automate the upload and install to iPhone process without using the play button.
Philoxopher
  • 1,660
  • 3
  • 15
  • 17
0
votes
1 answer

How to run iOS application in real device through terminal without a paid apple developer account?

First this not duplicate of Test iOS app on device without apple developer program or jailbreak I know it is possible to run app on device using Xcode 7 and free AppleId but i want to achieve this using terminal only Or in other words, Is there any…
0
votes
1 answer

Build iOS app from command line brings errors

I have a project, that builds perfectly from xCode 7, but fails from bash. I'm pretty new to command line using for this purposes, so not sure, what additional info I should provide. It just runs through tons of source files and fails in CompileC…
Vladyslav Zavalykhatko
  • 15,202
  • 8
  • 65
  • 100
0
votes
3 answers

Duplicate symbol from single library in iOS4.1 SDK

I am developing an iPhone application. I am unfamiliar with Xcode, so please bear with me. I have the iOS 4.1 Device SDK. When I select "Simulator" in the "Active ..." drop-down box, my application compiles without errors and runs in the iPhone…
Isaac Sutherland
  • 3,082
  • 4
  • 28
  • 37
0
votes
1 answer

Running xctool run-tests without building tests on machine

I would like to run my tests using xctool without having to build the tests on the machine prior. Basically, I want to build the tests on one machine, transfer them to several other machines and run them in parallel from there. So I need to know…
mattman88
  • 475
  • 1
  • 8
  • 22
0
votes
1 answer

How to run xcodebuild command in shell iOS

I want to run this simple command via a shell script i.e xcodebuild -workspace jamesAppV2.xcworkspace -scheme jamesAppV2 -configuration Debug -destination 'platform=iOS,name=Shujaat’s iPad' clean test I ran above command via command line and is…
Qadir Hussain
  • 8,721
  • 13
  • 89
  • 124
0
votes
3 answers

Error building my app to my ipod touch:building with 'Targeted Device Family' set to iPhone only ('1') not supported with SDK 'Device - iPhone OS 3.2

So I finished coding my app, and downloaded the development profile n all that good stuff with the entitlements, etc; but I get these warnings: ld: warning: in…
kevin Mendoza
  • 1,211
  • 2
  • 12
  • 16
0
votes
1 answer

How does the XCode-Run-Command look like?

For an automatic testing purpose, I have to build & run a XCode Project. Right now i prepare my project using scripts, then I open XCode, chose the right scheme and click the run-button. Afterwards I run my test script. All works fine! I have to…
user1879408
  • 1,948
  • 3
  • 17
  • 27
0
votes
1 answer

Xcode failed with exit code 71

I tried to build Qt iOS project but got this issue. Now I try to build this project in the Xcode but get this error: error: can't exec '/Applications/Xcode' (No such file or directory) Command /Applications/Xcode failed with exit code 71 How can I…
konstantin_doncov
  • 2,725
  • 4
  • 40
  • 100
0
votes
1 answer

Free Provisioning Profile with Qt

I know that I can use free iOS Provisioning Profile in Xcode (via Fix Issue button) for testing. I also know that Qt uses xcodebuild for iOS projects. But how can I create and use free Provisioning Profile in the iOS Qt project?
konstantin_doncov
  • 2,725
  • 4
  • 40
  • 100
0
votes
1 answer

Setting PRODUCT_NAME for CocoaPods project via shell script

I have a project that uses cocoa pods. I couldn't set the PRODUCT_NAME in xcodebuild it always leads to compile time error. /usr/bin/xcodebuild -scheme $Scheme -workspace $WorkSpaceOfProject -configuration Debug clean build…
Durai Amuthan.H
  • 31,670
  • 10
  • 160
  • 241