在为 iOS 项目构建 xcode 期间,Azure 管道失败

时间:2021-05-15 17:38:20

标签: ios swift xcode azure-devops azure-pipelines

尝试使用 xcode build 构建 iOS 项目。使用 -

  1. Xcode 12.4
  2. 代理规范 - macOS-10.15
  3. 工作区或项目路径 - Project.xcworkspace
  4. 配置 - 发布(也试过调试,它会产生更多错误)
  5. 方案 - 有效名称
  6. SDK - iphoneos

现在使用 Azure 管道构建 xcode 后出现以下错误。

我们也可以在本地和 Gitlab 上构建这个 xcode。但是相同的代码在 Azure Devops 上失败了。 请帮忙。

2021-05-12T13:00:30.6465950Z ❌  /Users/runner/work/1/s/Project/Framework/csdk_common.framework/Modules/module.modulemap:2:19: umbrella header 'csdk_common.h' not found
2021-05-12T13:00:30.6466920Z 
2021-05-12T13:00:30.6468430Z   umbrella header "csdk_common.h"
2021-05-12T13:00:30.6471390Z                   ^
2021-05-12T13:00:30.6471830Z 
2021-05-12T13:00:30.6472160Z 
2021-05-12T13:00:30.6472470Z 
2021-05-12T13:00:30.6473810Z ❌  /Users/runner/work/1/s/Project/TTS/main_internal.swift:2:8: could not build Objective-C module 'csdk_common'
2021-05-12T13:00:30.6474420Z 
2021-05-12T13:00:30.6475000Z import csdk_common
2021-05-12T13:00:30.6475580Z        ^
2021-05-12T13:00:30.6475930Z 
2021-05-12T13:00:30.6476250Z 
2021-05-12T13:00:30.6730310Z ** BUILD FAILED **
2021-05-12T13:00:30.6731680Z 
2021-05-12T13:00:30.6732100Z 
2021-05-12T13:00:30.6732840Z The following build commands failed:
2021-05-12T13:00:30.6733510Z    CompileSwift normal arm64
2021-05-12T13:00:30.6740330Z    CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler
2021-05-12T13:00:30.6746120Z (2 failures)
2021-05-12T13:00:30.7025590Z ##[error]Error: /usr/bin/xcodebuild failed with return code: 65
2021-05-12T13:00:30.7365340Z ##[section]Finishing: Xcode build

1 个答案:

答案 0 :(得分:0)

请检查 repos 分支,并确保您已将其添加到框架头文件下。也许您没有将正确的项目和必要的部分推送到 azure devops 存储库中。

#import "xxx\csdk_common.h"

更多信息,您可以查看 this issuethat