K2S*_*rit 1 xcode cocoapods azure-devops azure-pipelines
I am using an Azure Devops Build pipeline to build my Xcode workspace. It builds fine locally as well as if I import the repo and use it in AppCenter to build. But I want to use an external Git, thus using a Build Pipeline.
It is pretty simple in terms of steps.
1 - Get Repo (finishes this step)
2-Pod安装(完成此步骤)
3-安装证书/配置文件(完成此步骤)
4-建立
这是豆荚的豆浆
steps: task: CocoaPods@0 displayName: 'pod install'
Run Code Online (Sandbox Code Playgroud)
任务的结果是:
Pod installation complete! There are 9 dependencies from the Podfile and 9 total pods installed.
Run Code Online (Sandbox Code Playgroud)
这就是错误
?运行脚本“ [CP] Check Pods Manifest.lock”
?/Users/vsts/agent/2.149.1/work/1/s/MyDemo/Extension Files / SortedArray.swift:10:8:没有此类模块“ Starscream”
进口红蜘蛛
^
Run Code Online (Sandbox Code Playgroud)
**建立失败**
以下构建命令失败:
CompileSwift normal arm64
CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler
Run Code Online (Sandbox Code Playgroud)
(2次失败)
我已经浏览了文档,但不知道发生了什么。我把设置弄乱了,无济于事。
使用Xcode 10构建。
谢谢
此错误是由于Xcode任务无法在工作空间路径之外进行的。
xcWorkspacePath将azure-pipelines.yml文件中的变量从更新**/*.xcodeproj/project.xcworkspace到yourProjectName.xcworkspace。
- task: Xcode@5
inputs:
xcWorkspacePath: 'yourProjectName.xcworkspace'
Run Code Online (Sandbox Code Playgroud)