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
1
vote
0 answers

Unit Tests fail to run in XCode/Xctool

When I run my tests using Xcodebuild or Xctool, I see that the tool builds and installs the app into the simulator but fails to run the test. It is stuck forever in either Touching .xctest when I use xcodebuild or Launching and Running…
user1089464
  • 273
  • 2
  • 10
1
vote
1 answer

Travis-CI test on multiple iOS SDKs

I'm trying to test a framework on multiple iOS SDKs to make sure it's working on all. But I'm realizing that not all SDKs are available on all of the travis-ci osx_image. For example xcode7 only has iphonesimulator9.0. Is there a way to specify an…
keegan3d
  • 10,357
  • 9
  • 53
  • 77
1
vote
2 answers

How can I open the xcode organizer window by command line

I want to build and archive my project by command line (xcodebuild ,xcrun),and then open the xcode organizer window ,so that I can do "Submit to App Store" easily.However ,at the last step ,how can I open the xcode organizer window after archive…
zmgift
  • 11
  • 6
1
vote
1 answer

Teamcity Step tests (Command Line) failed when testing an iOS app

I am trying to run tests automatically using Teamcity, but it seems that when the agent is compiling the project, it is not done correctly because when I run the command like for running test, I am getting the following error: fatal error:…
lmiguelvargasf
  • 63,191
  • 45
  • 217
  • 228
1
vote
1 answer

Running app from console gets CodeSign error: code signing is required for product type 'Application' in SDK 'iOS 8.1'

I am trying to run an iOS app from the console executing the following command: xctool/xctool.sh -workspace Supermaxi.xcworkspace -scheme Supermaxi build and I am getting this response [Info] Loading settings for scheme 'Supermaxi' ... (11036…
lmiguelvargasf
  • 63,191
  • 45
  • 217
  • 228
1
vote
2 answers

Xcode 6.1 and Xctool failed when running tests

i have got working tests, but when i try to test them they failed on prepaire emulator. I have tried to build with xctool. I'am running in Jenkins my nodes connected via jnlp, also i have tried to build it directly on server, and nothing. How to fix…
Vladimir Voitekhovski
  • 1,472
  • 5
  • 21
  • 33
1
vote
0 answers

Skipping clean build using xctool

Is there a way to skip the clean build process using xctool? I'm usually building an xcode project via some automation script and I'm not making any changes to the xcode project itself. I'm just testing automation scripts changes and it would be…
piyushg91
  • 111
  • 1
  • 13
1
vote
0 answers

xctool doesn't install app using Jenkins

Xctool is not working in my Jenkins' job (v 1.598) but it works using Terminal This is the command line: xctool -destination 'platform=iOS Simulator,OS=8.1,name=iPhone 6' -reporter pretty -reporter json-compilation-database:compile_commands.json…
CEGONYA
  • 51
  • 6
1
vote
0 answers

Unit Test and xctool : cannot copy from bundle

I am using jenkins and xctool to continuously build and run unit tests on my iOS App. As I am using a sqlite database, in unit tests the very first thing I am doing is to copy the template database from assets (contained in the bundle) to the…
GUL
  • 207
  • 1
  • 8
1
vote
1 answer

cloudbees jenkins xctool cocoapods Pods.xcconfig not found

I am running jenkins on cloudbees and using reference shell script to install cocoapods before building the project. The reference script: # Install xctool via homebrew /usr/local/bin/brew install xctool # Run xctool +…
Miroslav Kuťák
  • 1,875
  • 1
  • 18
  • 24
1
vote
1 answer

Specify precompiled headers directory with xctool

I have an Xcode workspace with CocoaPods that I'm trying to build using xctool on travis. Here's the command that I'm using to do the build: xctool -workspace MyApp.xcworkspace -scheme MyApp -sdk iphoneos -configuration Release SYMROOT=$PWD/build…
edc1591
  • 10,146
  • 6
  • 40
  • 63
1
vote
1 answer

XCTest crashes when travis tries to run tests

I am trying to setup travis to run my existing tests. I am using XCTest and can successfully run the test locally with xctool test. I have the .xctool-args file setup with all of the needed configuration. On Travis the build completes but xctest is…
respectTheCode
  • 42,348
  • 18
  • 73
  • 86
1
vote
1 answer

How can I fix "Symbol not found: _NSURLSessionTransferSizeUnknown" when running tests using Travis that work locally?

The command xctool -workspace Foo.xcworkspace -scheme Foo -sdk macosx -configuration Debug test -test-sdk macosx works locally and all of the tests pass. Using Travis I get the following error: Failed to query the list of test cases in the test…
Paul Young
  • 1,489
  • 1
  • 15
  • 34
0
votes
1 answer

Changing orientation of Xamarin iOS app does not show pop up in the center of the screen on screen rotation

I am using Xamarin tool kit pop up in my Xamarin app iOS. It works fine in portrait mode. If I change the orientation to landscape mode while the pop up is already opened, the pop up does not show in the center of the screen. It shows on the left…
0
votes
1 answer

Building and launching app in Simulator from terminal

I wanted to build and launch my iOS app using a shell script and not Xcode. My question is the similar to this question: How to launch an iOS app in the simulator without XCode rebuilding the app, which was asked in 2012. It says that the IPA file…
Parth
  • 2,682
  • 1
  • 20
  • 39