无效的捆绑包 - App Store 拒绝

Invalid Bundle - App Store Rejection

我正在尝试将我的应用程序提交到应用程序商店,但我收到来自 Apple 的错误消息:

Dear developer,

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

Invalid Bundle - One or more dynamic libraries that are referenced by your app are not present in the dylib search path.

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

Regards,

The App Store team

我尝试使用这个 answer 来找出问题所在,但我仍然卡住了。我导出了应用程序的 iPA 文件并使用 otool -L MyApp 命令查找框架。以下是结果:

这些是我的 iPA 文件中的框架:

我使用 carthage 下载了所有框架,并将框架添加到嵌入式框架部分:

但是,当我提交应用程序时,我从 Apple 收到了相同的电子邮件。

谢谢!

不确定这是否有帮助,但我在更新应用程序时遇到过一次相同的错误。在那种情况下,问题是由必须更新以匹配当前的体系结构和 SDK 集的第三方库引起的。

我的建议是从 organizer 打开您的 archieve > 查看产品文件夹 > 打开 project.app > 查看应该没有任何 .exe 文件(文件夹内的任何位置嗯)。

通过将 "Always Embed Swift Standard Libraries" 切换为是,我终于接受了它: