小编Hap*_*ump的帖子

devops Pipelines 中的私人 Cocapods 存储库

使用 Azure DevOps 和 iOS 对我来说是第一次。我正在尝试在 Azure devops 中为一个 iOS 应用程序创建一个构建管道,该应用程序具有多个私有 cocoapods 存储库 ( PodXSource) 和一个私有规范存储库 ( projectPodSpecsRepository)。

我似乎无法执行 Azure Cocoapod 任务。我尝试了多种方法,但没有一个有效。我错过了什么吗?

这是我的 yaml 管道的一部分:

- script: 
          git clone https://$(gitUser):$(gitPat)@dev.azure.com/happydump/projectCore/_git/projectPodSpecsRepository

          git config --global credential.helper store

          git clone https://$(gitUser):$(gitPat)@dev.azure.com/happydump/projectCore/_git/Pod1Source

          git clone https://$(gitUser):$(gitPat)@dev.azure.com/happydump/projectEvaluations/_git/Pod2Source

          git clone https://$(gitUser):$(gitPat)@dev.azure.com/happydump/projectEvaluations/_git/Pod3Source

          git clone https://$(gitUser):$(gitPat)@dev.azure.com/happydump/projectEvaluations/_git/Pod4Source

          git clone https://$(gitUser):$(gitPat)@dev.azure.com/happydump/projectEvaluations/_git/Pod5Source


- task: CocoaPods@0
  inputs:
    forceRepoUpdate: false
Run Code Online (Sandbox Code Playgroud)

$(gitUser)都是$(gitPat)用于凭证目的的管道机密。

Pod 文件:

# Uncomment the next line to define a global platform for your project
platform :ios, …
Run Code Online (Sandbox Code Playgroud)

azure ios cocoapods azure-devops

6
推荐指数
1
解决办法
5160
查看次数

标签 统计

azure ×1

azure-devops ×1

cocoapods ×1

ios ×1