我正在尝试使用 gitlab 设置 CI。当我尝试在本地构建时,出现此错误:xcodebuild: error: 'APP.xcworkspace' does not exist.
“APP”不是真实名称。我也在使用 CocoaPods。
我在终端中运行此命令后会发生这种情况:gitlab-ci-multi-runner exec shell build_project
我已经检查过,该文件确实存在于我调用该命令的同一文件夹中。
这是我的 .gitlab-ci.yml 文件:
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
Cocoapods版本:1.2.0
Gitlab-runner 版本:1.11.0
Alex
在 React Native 上,我通过在 /ios 文件夹中运行命令解决了这个问题。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)