Ale*_*sic 6 continuous-integration ios cocoapods gitlab
我正在尝试使用 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
Run Code Online (Sandbox Code Playgroud)
Xcode 版本:8.2.1
Cocoapods 版本:1.2.0
Gitlab-runner 版本:1.11.0
亚历克斯
我现在已经解决了这个问题!!
我只需更新 cocoapods 存储库,请访问此链接: https: //github.com/CocoaPods/CocoaPods/issues/5077
看起来你的规范存储库在某个时候被编辑过,现在 git 无法更新它。我建议删除并重新创建您的 Specs 存储库:
pod repo remove master并运行pod setup