Questions tagged [xctool]

xctool is a replacement for Apple's xcodebuild that makes it easier to build and test iOS and Mac projects.

xctool is a replacement for 's that makes it easier to build and test and projects.

xctool is drop-in replacement for xcodebuild that adds a few extra features:

  • Runs the same tests as Xcode.app.
  • Structured output of build and test results.
  • Human-friendly, ANSI-colored output.
  • Faster, parallelized test runs.

For a fully-featured version, the Command Line Tools should be installed. xctool's commands and options are mostly a superset of xcodebuild's. In most cases,xcodebuild can just be swapped with xctool and things will run as expected but with more attractive output.

You should be using this tag if your question is related to the use of xctool for iOS and Mac projects.

53 questions
15
votes
1 answer

Homebrew Can't Install xctool

What does Homebrew mean to Check dependencies? Is this a Xcode5.1/iOS7.1 issue? I already ran through this link. $ brew install --verbose xctool ==> Downloading https://github.com/facebook/xctool/archive/v0.1.14.tar.gz Already downloaded:…
Glenn
  • 325
  • 2
  • 9
8
votes
1 answer

figure out ld command arguments from xcode run script build phase

How can I determine what will be the arguments of the ld command in the build process from inside a script running as "run script build phase"? I was looking at xcodebuild -dry-run as an option, but then I need to understand what should be the…
ekeren
  • 3,408
  • 3
  • 35
  • 55
6
votes
1 answer

xctool build with today extension

we have an app integrated with today extension, we use xctool and Jenkins to do continuous build and in-house distribution. In command line, before we use xctool -workspace our_workspace.xcworkspace -scheme app_schme -xcconfig path_to_xcconfig…
machackx
  • 167
  • 1
  • 9
6
votes
3 answers

xctool fails to clean my iOS project

I'm using xctool (v0.1.16) for an iOS project, which is configured as follows: a workspace two targets Project and ProjectTests two schemes Project and ProjectTests I have a .xctool-args file with the workspace and Project scheme configured. I…
Philippe A
  • 1,252
  • 9
  • 22
6
votes
6 answers

xcodebuild generating empty compile_commands.json

I am using following commands to use the oclint with xcode 5- Step1: xcodebuild -target OClintDemo -configuration Debug -scheme OClintDemo -sdk iphonesimulator Step2: OClintDemo jenkins$ xcodebuild -sdk iphonesimulator | tee xcodebuild.log Step3:…
iGagan Kumar
  • 406
  • 8
  • 26
5
votes
1 answer

Targeting multiple iOS versions in your .travis.yml

I'm new to Travis CI and have set up a basic build and test against a single project and environment. The .travis.yml looks like this: language: objective-c osx_image: xcode7 xcode_project: ./[project]/[project].xcodeproj xcode_scheme:…
tkelly
  • 635
  • 6
  • 13
4
votes
3 answers

ERROR ITMS-90046 using xctool / xcodebuild vs XCode Archive's success

I've got a command line script I use to compile, archive and submit my ios builds to ITC for TestFlight deployment. They work great, but I recently ran into an issue when trying to use an embedded framework within my otherwise working project. My…
Miro
  • 5,307
  • 2
  • 39
  • 64
4
votes
1 answer

Running a single KIWI spec with xctool

Has anyone been able to successfully pass the KW_SPEC variable to xctool. I'm trying to run a single KIWI spec by using https://github.com/kiwi-bdd/Kiwi/wiki/Kiwi-FAQ#q-how-do-i-run-a-single-spec-describecontextit. I can run all the tests…
4
votes
0 answers

xctool error with running test

I have a simple Xcode project with a few tests. When I use xctool to build with simple command: path/to/xctool.sh \ -project YourProject.xcodeproj \ -scheme YourScheme \ build it works just fine. However, when I try to build & run my tests, I…
pprochazka72
  • 552
  • 5
  • 17
4
votes
0 answers

xctool: Tried to install the test host app but failed

Trying to get app/logic tests to run through the command line. Right now I am testing out xctool. It works great on my dev machine, but for some reason starts failing on the Mac mini we are using as a build server. As it turns out, it works if I run…
Danedo
  • 2,193
  • 5
  • 29
  • 37
4
votes
2 answers

Exclude tests from xctool

Is it possible to exclude a specific unit test or test suite from xctool? I noticed that xctool allows me to specify specific tests to run with the -only flag. I would like to do the opposite. The reason is that some tests require components that…
hpique
  • 119,096
  • 131
  • 338
  • 476
3
votes
1 answer

xctool build failure: Test bundle not found under `Debug-iphonesimulator`

I'm experiencing failures while running xctool build. My command is as follows: xctool clean build run-tests -only 'MyApp KIF Tests' -workspace MyApp.xcworkspace/ -scheme 'Debug' -destination "platform=iOS Simulator,name=iPhone 6,OS=latest" -sdk…
SeaJelly
  • 1,738
  • 1
  • 15
  • 30
3
votes
2 answers

Xcode command line test execution issues

I'm in a strange situation where I can get xctool to run my test but I cant figure out the equivalent command line to get xcodebuild and/or fastlane scan to run my tests. I have an iPad only application with a single scheme and two targets (otto…
Jeef
  • 26,861
  • 21
  • 78
  • 156
3
votes
0 answers

xctool build command fails on Jenkins Shell

I have similar issue as this one I am trying to implement Test Reports of Xcode on Jenkins using xctool. Executing this command in the local terminal it works as expected: /usr/local/bin/xctool -workspace Sample.xcworkspace -scheme Samplescheme -sdk…
hrskrs
  • 4,447
  • 5
  • 38
  • 52
3
votes
1 answer

Sample .travis.yml for Cocoapods based iOS projects

I have this very simple iOS project. It's using Cocoapods for dependency management, and includes AFNetworking as one of its dependency. Currently, my project code is just doing a simple http GET request and the test (written using Specta) checks if…
fengye87
  • 2,433
  • 4
  • 24
  • 41
1
2 3 4