1. 程式人生 > >打包出現Invalid Swift Support回執郵件的解決辦法

打包出現Invalid Swift Support回執郵件的解決辦法

nvalid Swift Support - The SwiftSupport folder is missing

今天使用 loader 向 iTunes Connect 提交新版本後,等了幾個小時一直看不到提交的新版本,然後發現apple給發了封郵件,如圖1

Dear developer,


We have discovered one or more issues with your recent delivery for "****". 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. 


Regards,


The App Store team
圖1


其實之前的新版本已經傳了上去,上傳後會有 正在處理

的標誌(如圖2),但是在這一步的時候稽核沒通過,然後被拒了,接著就有了圖1的郵件


圖2

無效的版本不會出現在構建版本里的,但是成功構建版本後之前被拒的版本就會出現

解決:
bg:Xcode Version 8.1 (8B62) 專案是使用 Swift 和 OC 混編的
Invalid Swift Support - The SwiftSupport folder is missing. 這是由於 Archive 的時候 SwiftSupport沒有新增到 ipa 中。
Target -> Build Settings 中 如下配置下:



切記要archive  不要loader  前車之鑑  我就折騰了一下午

然後 clear 下,最好在編譯一下,然後正常 Archive,接下來重點是 一定不要 Export AdHoc Deployment,直接如下圖處理



接下來 如果沒有其他錯誤的話 就可以在 iTunes Connect 中檢視到如下



圖中帶 ! 的都是無效的版本,由於某些錯誤被拒的,然後就可以正常的提交稽核了



文/申申申申申(簡書作者)
原文連結:http://www.jianshu.com/p/e4ef13b539b4
著作權歸作者所有,轉載請聯絡作者獲得授權,並標註“簡書作者”。