Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

xcodebuild: error: 'APP.xcworkspace' does not exist

I am trying to set up CI with gitlab. When I try to build locally, I get this error : xcodebuild: error: 'APP.xcworkspace' does not exist. "APP" not being the real name. I am also using CocoaPods.

This happens after I run this command in terminal: gitlab-ci-multi-runner exec shell build_project

I have checked and the file does exist in the same folder I call the command.

This is my .gitlab-ci.yml file:

stages:
  - build

build_project:
  stage: build
  script:
    - xcodebuild clean -workspace APP.xcworkspace -scheme APP | xcpretty
    - xcodebuild test -workspace APP.xcworkspace -scheme APP -destination 'platform=iOS Simulator,name=iPhone 7,OS=10.2' | xcpretty -s
  tags:
    - v0.0.1

Xcode version: 8.2.1

Cocoapods version: 1.2.0

Gitlab-runner version : 1.11.0

Alex

like image 910
Aleksander Aleksic Avatar asked Feb 23 '17 21:02

Aleksander Aleksic


People also ask

What is Xcworkspace?

xcworkspace file corresponds to a “workspace” created in Xcode via File > New > Workspace... . You can open them in Xcode, just like you can open projects. But it's not actually a file, it's a directory. Only Finder attempts to confuse you by displaying directories with this extension as files.


1 Answers

On React Native I've solved this issue by running command inside /ios folder.

like image 196
Murilo Medeiros Avatar answered Oct 27 '22 08:10

Murilo Medeiros