gpt4 book ai didi

ios - Jenkins 自动化 iOS 构建缺少 SwiftSupport 文件夹

转载 作者:搜寻专家 更新时间:2023-10-31 22:47:13 27 4
gpt4 key购买 nike

目前我遇到一个问题,当 jenkins 执行作业生成 .ipa 提交给 testflight 时,Apple 给我发送了以下电子邮件:

We have discovered one or more issues with your recent delivery for "XXXXX". To process your delivery, the following issues must be corrected:

Invalid Swift Support - The SwiftSupport folder is missing. Rebuild your app using the current public (GM) version of Xcode and resubmit it.

Once these issues have been corrected, you can then redeliver the corrected binary.

我打开上传的 .ipa 文件,确实没有这个文件夹。所以我尝试手动构建...我使用了与 jenkins 用于生成构建的相同工作区,我手动生成了一个构建以上传到 AppStore,一切顺利...

自动化构建可能存在什么问题? jenkins 是否可能遗漏了一个步骤?

有人遇到同样的问题吗?

最佳答案

归档申请

xcodebuild \
-workspace "${WORKSPACE_FILE}" \ # only if you are using workspace
-scheme "${SCHEME_NAME}" \
-sdk "${TARGET_SDK}" \
-archivePath "${PROJDIR}/Build/${SCHEME_NAME}.xcarchive" \
-configuration Release \
archive

将存档导出到 ipa

xcodebuild \
-exportArchive \
-archivePath "${PROJDIR}/Build/${SCHEME_NAME}.xcarchive" \
-exportOptionsPlist "${PROJDIR}/exportOptions.plist" \
-exportPath "${PROJDIR}/Release"

导出选项.plist

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>method</key>
<string>app-store</string>
</dict>
</plist>

关于ios - Jenkins 自动化 iOS 构建缺少 SwiftSupport 文件夹,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35068698/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com