Skip to content

Instantly share code, notes, and snippets.

@iheart2code
Last active April 29, 2019 10:04
Show Gist options
  • Save iheart2code/0d2a640ba9eb67c7c76b to your computer and use it in GitHub Desktop.
Save iheart2code/0d2a640ba9eb67c7c76b to your computer and use it in GitHub Desktop.
.gitlab-ci.yml for Xcode project
stages:
- build
build_code:
stage: build
script:
- xcodebuild clean -project TestProject.xcodeproj -scheme TestProject | xcpretty
- xcodebuild test -project TestProject.xcodeproj -scheme TestProject | xcpretty -c && exit ${PIPESTATUS[0]}
tags:
- ios
@uthens
Copy link

uthens commented Apr 29, 2019

http://www.thejeremywhite.com/blog/2015/10/05/xcode-gitlab-ci-setup.html

  1. I found the problem, when I run on terminal

➜ testproject git:(master) ✗ xcodebuild test -project TestProject.xcodeproj -scheme TestProject | xcpretty -c && exit ${PIPESTATUS[0]}

Error on below:
Testing failed:
TestProjectTests:
TestProject.app encountered an error (Failed to install or launch the test runner. (Underlying error: Launch error))
TestProjectUITests:
TestProjectUITests-Runner.app encountered an error (Failed to install or launch the test runner. (Underlying error: Launch error))

  1. You can share information on "config.toml" ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment