xcodebuild:错误:'APP.xcworkspace'不存在 [英] xcodebuild: error: 'APP.xcworkspace' does not exist

查看:402
本文介绍了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回购,请使用以下链接:
https://github.com/CocoaPods/CocoaPods/issues/5077

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


看起来您的规格存储库已在某个时候被编辑,现在git无法更新它。我建议删除并重新创建您的规格存储库: pod存储库删除主文件并运行 pod设置

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

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆