本文介绍了xcodebuild:错误:'APP.xcworkspace'不存在的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用gitlab设置CI。当我尝试在本地构建时,出现以下错误: xcodebuild:错误:'APP.xcworkspace'不存在。
APP不是真实名称。我也在使用CocoaPods。

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.

在终端中运行以下命令后,就会发生这种情况:
gitlab-ci-multi-runner exec shell build_project

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.

这是我的.gitlab-ci.yml文件:

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版本:8.2.1

Xcode version: 8.2.1

Cocoapods版本:1.2.0

Cocoapods version: 1.2.0

Gitlab-runner版本:1.11.0

Gitlab-runner version : 1.11.0

Alex

推荐答案

我已经解决了这个问题!!

I have solved this now!!

我只需要更新cocoapods回购,请使用以下链接:

I just had to update the cocoapods repo, se this link:https://github.com/CocoaPods/CocoaPods/issues/5077

这篇关于xcodebuild:错误:'APP.xcworkspace'不存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-26 20:35