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

KIF 3.0 (XCTest) tests from command line

My KIF tests are running fine from within the xcode however, when I run those from command line with following command, KIF tests are failing however all other unit tests (XCTest) are passing. My command below, xcodebuild debug -workspace…
naveed148
  • 548
  • 5
  • 8
0
votes
1 answer

Xcodebuild: Failed to load Addressbook

When I used carthage, build always faild, So I search carthage github issues, I found it seems to be xcodebuild error, Even though, I input xcodebuild -list it will throw error ~$ > xcodebuild -list 2016-03-02 10:40:17.413 xcodebuild[17993:2398778]…
Magic
  • 115
  • 6
0
votes
1 answer

xcodebuild error "clang: error: unknown argument: '-fYEScolor-diagnostics'"

When running xcodebuild for UIAutomation tests I'm getting a clang unknown argument error. There are plenty of solutions from similar issues how ever they don't work for me. Spicifically…
andii
  • 175
  • 1
  • 10
0
votes
1 answer

pod lib lint fails implicit declaration of function 'DLog' is invalid in C99

I tried to declare this macro on my prefix.pch file which works great on XCode and passes validation on travis. my macro looks like: #ifndef RELEASE #define DLog(__FORMAT__, ...) NSLog((@"%s [Line %d] " __FORMAT__), __PRETTY_FUNCTION__, __LINE__,…
Lagubull
  • 231
  • 1
  • 10
0
votes
1 answer

Xcode 7.2: how to build with Ad Hoc provisioning profile vs. App Store provisioning profile?

Currently in Xcode, I have a Development scheme and an Ad Hoc scheme. Both are set to Automatic under Xcode Project -> iOS app target -> Build Settings -> Provisioning Profile. I'm currently using xcodebuild from the command line and specifying the…
0
votes
1 answer

Compile for ios simulator and run UITest in 2 times

I try to compile my app for UITesting and in a second time run the UITest on iOS simulator. But I need to do this in 2 times. In one time I use : xcodebuild -workspace './MyApp.xcworkspace' -scheme 'MyScheme' -derivedDataPath…
Alak
  • 1,329
  • 3
  • 11
  • 18
0
votes
1 answer

shell tool target can't find info.plist

when I tried to run the program, it showed this message: No Info.plist file in application bundle or no NSPrincipalClass in the Info.plist file, exiting But there's actually an Info.plist in my Resources group. I already added InfoPlist.strings…
Frost
  • 3,786
  • 5
  • 23
  • 29
0
votes
1 answer

CocoaPods Podspec: Dependency declared, but file not found during build

I'm trying to make a new Podspec for the WLXBluetoothDevice project. I'm stuck at pod spec lint. I've declared its one dependency in the podspec file: s.dependency 'CocoaLumberjack' (... oddly enough if I include the current version in that…
Darren Black
  • 1,030
  • 1
  • 9
  • 28
0
votes
0 answers

xcodebuild fails with "Cannot determine the current working directory" if I use it in a loop

I'm building a small script to run xcodebuild with different settings. That's why I'm using a loop to iterate my device settings. Everything works fine as long as I have only one item in my list. If I have two, the first build runs successful but…
Tobonaut
  • 2,245
  • 2
  • 26
  • 39
0
votes
4 answers

EXPORT FAILED error using xcodebuild command line tool

I'm trying to export an ipa file through xcodebuild but I always receive this error. IDEDistribution: Step failed: : Error Domain=IDEDistributionErrorDomain Code=14 "No applicable devices found." UserInfo={NSLocalizedDescription=No applicable…
Lorenzo B
  • 33,216
  • 24
  • 116
  • 190
0
votes
1 answer

How to change the build path when use command xcodebuild

enter image description here when I use command xcodebuild to build a workspace, the default path is: ~/Library/Developer/Xcode/DerivedData/BantingAssistant-egoztalzcreabohfvgozqfhfvopa/Build/Products/Debug-iphoneos I want to change the path, or…
honolulu
  • 11
  • 5
0
votes
1 answer

xcodebuild couldn't read dependency graph from ... .... : Permission denied

Today I experienced the following error from xcodebuild: xcodebuild couldn't read dependency graph from ... .... : Permission denied And further down: Details: unable to write dependency graph: You don’t have permission to save the file…
Marmoy
  • 8,009
  • 7
  • 46
  • 74
0
votes
0 answers

iOS: xcodebuild command add argument to "Header Search Paths" in Build Settings

I have a problem with the xcodebuild archive command. I get the following error: Cordova/CDVViewController.h not found I know that I have to add in the build settings in 'Header Search Paths' 'Release' following…
JavaAndroider
  • 97
  • 3
  • 9
0
votes
1 answer

xcode: calculate expression when Debug

Can Xcode calculate the value of an expression while debugging? I mean like MS visual studio, there is a "watch" window, where the debugger can input expressions composed with the local variables, and vs will calculate the value. can similar thing…
boreas
  • 1,041
  • 1
  • 15
  • 30
0
votes
2 answers

xcodebuild produces different archive to Xcode 7.0.1

I am using xcodebuild to generate an archive from a workspace. I use the following command: xcodebuild -workspace MyProject.xcworkspace -scheme "MyProject" -destination generic/platform=iOS archive -archivePath…
simeon
  • 4,466
  • 2
  • 38
  • 42