I am working on Gitlab CI, but getting some issue relate to test run, as below command is working on terminal and given perfectly test result but somehow its now run on gitlab CI.
below is my .gitlab-ci.yml
stages:
- build
build_project:
stage: build
script:
- xcodebuild clean -workspace "First Container.xcworkspace" -scheme "First Container" | xcpretty
- xcodebuild test -workspace "First Container.xcworkspace" -scheme "First Container" -destination 'platform=iOS Simulator,name=iPhone 8 Plus,OS=11.3' | xcpretty
tags:
- ios_11-3
- xcode_9-3
- osx_10-13-4
below command work on my terminal:
$ xcodebuild test -workspace "First Container.xcworkspace" -scheme "First Container" -destination 'platform=iOS Simulator,name=iPhone 8 Plus,OS=11.3' | xcpretty
but it stuck when I run on CI, my gitlab-runner not launch iPhone simulator and run the test, build is working