Invalid Swift Support - The Swif
分享一个今天提交ipa遇到的小问题。
首先是这样,主程序用oc编写,然后使用了百度鹰眼SDK,插件用swift编写,前几次提交版本都没有问题,前天更新了XCode8.3, 然后昨天晚上APP发布新版本。
开发的时候Project的ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO选项为NO,Target的ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO选项为YES.
然后手机上运行,ADHOC包都没有问题,但是提交app store的时候问题来了,提交成功了,但是随后就收到apple的邮件:
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 empty. 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
stackoverflow上找到了同样的问题,但是没有解决,网上试了很多方法,都没有解决,包括全部设置为YES和全部设置为NO。
后来发现其实很简单,调换一下主程序和插件的设置ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES,即主程序ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES为YES,插件为NO,这样就ok。
试了其他很多方法,都不行的,也是会提示无效的swift支持。