我正在開發一個 Kotlin Multiplatform 專案,該專案在本地構建良好,但我無法讓它在 Azure DevOps 管道上運行。
一些好東西要知道:
- 不使用 Cocoapods
- 在構建階段中使用
embedAndSignAppleFrameworkForXcodegradlew 命令 - 所有使用
fastlane本地多個開發人員作業的命令 - 我們使用自定義配置,例如:ProjectADebug/ProjectARelease,但我們
KOTLIN_FRAMEWORK_BUILD_TYPE為所有這些配置定義了
我正在嘗試使用 Azure DevOps 管道構建并上傳到 App Store Connect fastlane。我們match用于簽名,效果很好。存檔失敗,看起來它在構建共享 KMM 框架時失敗了。
任何有同樣問題的人可以幫助我嗎?或者一些提示我如何gym在 Azure VM 上查看這些日志,因為我假設它說明了實際出了什么問題,而不是這個一般錯誤。
? Running script 'Build Kotlin Common'
? Copying /Users/runner/Library/Developer/Xcode/DerivedData/Project-ffubndppzitzbxhibjgeavrhnzpw/Build/Intermediates.noindex/ArchiveIntermediates/Project/BuildProductsPath/ProjectRelease-iphoneos/Airship_AirshipCore.bundle
? Copying /Users/runner/Library/Developer/Xcode/DerivedData/Project-ffubndppzitzbxhibjgeavrhnzpw/Build/Intermediates.noindex/ArchiveIntermediates/Project/BuildProductsPath/Project Release-iphoneos/Airship_AirshipAutomation.bundle
** ARCHIVE FAILED **
The following build commands failed:
PhaseScriptExecution Build\ Kotlin\ Common /Users/runner/Library/Developer/Xcode/DerivedData/Project-ffubndppzitzbxhibjgeavrhnzpw/Build/Intermediates.noindex/ArchiveIntermediates/Project/IntermediateBuildFilesPath/Project.build/ProjectRelease-iphoneos/Project.build/Script-2F4970EC27CD16A000E32F91.sh (in target 'Project' from project 'Project')
(1 failure)
ERROR [2022-05-10 13:04:32.36]: Exit status: 65
ERROR [2022-05-10 13:04:32.53]: ?? Check out the few lines of raw `xcodebuild` output above for potential hints on how to solve this error
WARN [2022-05-10 13:04:32.53]: ?? For the complete and more detailed error log, check the full log at:
WARN [2022-05-10 13:04:32.53]: ?? /Users/runner/Library/Logs/gym/Project-Project.log
這是 Fastfile 中的通道:
lane :azure_beta do |options|
label = options[:label].capitalize
git_url = "someURL"
match(
type: "appstore",
readonly: true,
git_url: git_url,
keychain_name: ENV["MATCH_KEYCHAIN_NAME"],
keychain_password: ENV["MATCH_KEYCHAIN_PASSWORD"],
verbose: true
)
build_app(
project: "../Project/Project.xcodeproj",
configuration: "#{label}Release",
scheme: label
)
# fails on the build_app step...
changelog = changelog_from_git_commits(
pretty: "- (
轉載請註明出處,本文鏈接:https://www.uj5u.com/ruanti/475593.html
標籤:代码 科特林 天蓝色的devops 快车道 kotlin-多平台
上一篇:事實失敗后添加的未更改測驗目標
