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 to configure the Travis instance to grant permission for Xcode Helper to use Accessibility prior to running xcodebuild?
I'm using the latest Xcode 7.2 Travis configuration with OSX 10.11.1, and I'm running my tests using xcodebuild as a Travis script because xctool does not yet support running UI tests. If you try to use xctool, you'll get an error that the testing bundle does not contain an executable.
I believe other folks have run UI tests on Travis for iOS because they are run in the simulator and don't require Xcode Helper to have Accessibility permissions.
Here is my .travis.yml file (slightly obfuscated):
osx_image: xcode7.2
language: objective-c
xcode_workspace: MyApp.xcworkspace
xcode_scheme: MyAppUITests
jdk:
- oraclejdk8
install:
- pod install
- gem install xcpretty --no-rdoc --no-ri --no-document --quiet
- xcodebuild -workspace MyApp.xcworkspace -scheme MyAppUITests -destination 'platform=OS X,arch=x86_64' clean build | xcpretty -c || true
script:
- xcodebuild -workspace MyApp.xcworkspace -scheme MyAppUITests -destination 'platform=OS X,arch=x86_64' test
sqlite3
command fails with a "read-only file" error. I haven't been able to find a workaround. – Camiecamila