簡體   English   中英

Jenkins自動iOS構建缺少SwiftSupport文件夾

[英]Jenkins automated iOS build has SwiftSupport folder missing

目前我遇到一個問題,當jenkins執行工作以生成.ipa以提交給testflight時,Apple會向我發送以下電子郵件:

我們發現您最近交付的“XXXXX”存在一個或多個問題。 要處理您的交付,必須糾正以下問題:

無效的Swift支持 - 缺少SwiftSupport文件夾。 使用當前公共(GM)版本的Xcode重建您的應用程序並重新提交。

一旦糾正了這些問題,您就可以重新更新已更正的二進制文件。

我打開了上傳的.ipa,這個文件夾不存在。 所以我嘗試手動進行構建...我使用了jenkins用來生成構建的相同工作區,我手動生成了一個構建來上傳到AppStore,一切順利......

自動構建可能會出現什么問題? 詹金斯可能缺少一步嗎?

有人有同樣的問題??

您是否在xcodebuild命令中指定了-exportOptionsPlist選項?

請參閱xcodebuild -help獲取可用的鍵,但您可能需要一個至少將他的方法鍵設置為“app-store”的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>

歸檔應用程序

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"

exportOptions.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>

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM