尝试使用 xcode build 构建 iOS 项目。使用 -
现在使用 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
答案 0 :(得分:0)
请检查 repos 分支,并确保您已将其添加到框架头文件下。也许您没有将正确的项目和必要的部分推送到 azure devops 存储库中。
#import "xxx\csdk_common.h"
更多信息,您可以查看 this issue 和 that。