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$...

Facebook iOS SDK installation via CocoaPods

I'm trying to update Facebook-iOS-SDK pod to latest 3.18.0 version but after running command pod update I get many error messages: Installing Facebook-iOS-SDK (3.18.0) [!] /usr/bin/git...

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...

simctl + xcodebuild changing simulator state

I'm trying to automate the functional testing I have in my project. For this, I use Jenkins and run the test tasks using the post-receive git hook. The job is properly invoked, but before the...

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...

Fastlane + OCLint + CocoaPods integration. Error when excluding Pods folder

I use fastlane-1.17.1, but will try to update it soon. I created next lane for testing my code: lane :test do xctool [ "--reporter", "json-compilation-database:compile_commands.json", ...

On Travis CI how are iOS apps code signed and uploaded to Apple TestFlight?

I've been trying to setup Travis CI as a build server, but am running into problems both code signing the app, and uploading it to TestFlight. The main issue is uploading to Apple TestFlight. I...

Xcode UI testing on Travis for OSX with Xcode Helper Accessibility

How can I configure Travis to run my UI XCTest cases for OSX? The Travis test fails because, on OSX, Xcode Helper requires permission to use Accessibility for the test instance. Is there any way...

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...

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...

Xcode bug, or compile error? "Unable to convert data to string around character"

I was assigned to convert a rather large app to Swift 2. It uses various external frameworks and is mostly based around reading and displaying JSON. I got stuck today with a rather cryptic...

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...

Running individual XCTest (UI, Unit) test cases for iOS apps from the command line

Is it possible to run individual test cases, or individual test suites, from an iOS app test target, instead of all the test cases, from a command line interface? You can run tests from command...

Travis-CI with: ERROR: Cannot find schemes

This is my .travis.yml file language: objective-c osx_image: xcode7.2 script: xctool -project ProjectName.xcodeproj -scheme ProjectName build -sdk iphonesimulator While Travis is running...

Error while running sonar-scanner and sonar server on diffrent machine

I have installed sonarqube server on the windows machine. It is working for the .net/php projects successfully with sonar-scanner(sonar-scanner on same machine). But for the iOS project, I am...

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...

Why can't Travis-CI find my cocoapod dependencies?

This Podspec fails on the line pod 'SwiftyTimer', '~> 1.4' with Unable to find a specification for SwiftyTimer. It installs fine locally. Things I've tried: Specify the exact URL for SwiftyTimer...

XCode UI Testing: Unable to find test runner app containing test bundle path

I have written UI Tests in XCode 7.3.1 on a dedicated target. I can record a UI test but if I try to launch it (all tests or a single one), I got the following error : Unable to find test runner...

Testing without simulator using xctool

I'm trying to run unit tests without the simulator using xctool. I set the 'Host Application' to None in the test target's General tab, following the directions from [this comment][1] . When I run...

dose installing `xctool` will completely replace `xcodebuild` for all build?

I want to install xctool for for understanding and practice but I'm not sure whether installing it completely replaces the xcodebulid or it will be a separate installation and will not affect my...

Alternative to xctool for running tests on Xcode 8?

It looks like xctool is being deprecated and is not going to support Xcode 8. I'm wondering what tool I can use to easily build and run my test suite for iOS in a continuous integration server.

"ERROR: Unexpected action: build" when building a project with Swift 3 and Cocoapods on Travis-CI

Evening/morning/afternoon all, Been hitting my head over this for a bit now and couldn't find anything online about this so my best bet is here. When Travis-CI builds my project I get the...

OCLint generate html report error

I'm trying to generate an html report from OCLint analysis. I've installed xctool and generate the json file with this command: xcodebuild -workspace SecondHand.xcworkspace -scheme SecondHand...

iOS application continuous integration with Travis CI

I tried to integrate Travis CI into my iOS application. I get an error stating: The command "xctool -project RomanToBase10.xcodeproj -scheme RomanToBase10 build test" exited with 4. My...

Travis CI - Failed to query the list of test cases in the test bundle: Test bundle not found

I got this error when I run tests from travis : Failed to query the list of test cases in the test bundle: Test bundle not found at:...

How to list all test cases using xcodebuild without running?

Using xcodebuild I can run a specific test or group of tests. But is there a way to list all tests without running them, using xcodebuild or any other tool that comes with xcode? Facebook's xctool...

iOS : OCLint is not working with xcode 9.2

We have integrated OCLint in one of our project with below script. source ~/.bash_profile export PATH=$PATH:/usr/local/bin/ if [ -z "${SCHEME+x}" ] then export SCHEME="${PROJECT_NAME}" fi if [...

how to install brew in gitlab-ci

how to install brew in gitlab-ci with shell # - ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" # - sh -c "$(curl -fsSL...

Cocoapod CI on travis can't install dependencies

This is a cocoapod I created with pod lib create according to the cocoapods guide: https://guides.cocoapods.org/making/using-pod-lib-create.html. The directory stucture and files and the example...

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,...