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

标签 ios xcode swift jenkins

目前我遇到一个问题,当 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/

相关文章:

ios - 如何删除UINavigationBar的边框底部?

ios - Swift 3.0 将图像写入目录

swift - 更改默认蓝色 TabBar

ios - 检查哪个 View 发送 gestureRecognizer

ios - 在 segue 之后关闭 View Controller

ios - 从右到左支持 iOS

swift - 实例化的可选变量在Xcode调试器中显示为nil

ios - 在 swift3 和 xcode 8.1 中,引入了一个新的 DispatchQueue,我可以将它备份到 ios 9.0 吗?

ios - 为什么我的 If-Else block 没有按应有的方式工作?

swift - 如何在userdefaults中存储日期?