TestFlight build with error: One or more dynamic libraries that are referenced by your app are not present in the dylib search path

TestFlight build with error: One or more dynamic libraries that are referenced by your app are not present in the dylib search path

我最近一直在努力解决我在将构建上传到 TestFlight 时收到的电子邮件中提到的问题:

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

我已经通过 Cocoapods 添加了 Google Admob(这是我在 Cocoapods 中唯一的库)并且我通过 SPM 添加了其他几个库:

我还尝试验证生成的 IPA,我收到了一封可怕的电子邮件,Xcode 说这是一个有效的 IPA。

我也试过查看 https://medium.com/360learning-engineering/resolving-itms-90562-invalid-bundle-email-from-the-app-store-d4a1030418e5,我使用 @rpath 得到的框架如下,但我遇到的问题是,因为我使用的是 Cocoapods 和 SPM,没有 Frameworks 文件夹:

@rpath/FBLPromises.framework/FBLPromises (compatibility version 1.0.0, current version 1.0.0)
@rpath/GoogleUtilities.framework/GoogleUtilities (compatibility version 1.0.0, current version 1.0.0)
@rpath/nanopb.framework/nanopb (compatibility version 1.0.0, current version 1.0.0)
@rpath/libswift_Concurrency.dylib (compatibility version 1.0.0, current version 5.6.0, weak)

这是文件夹的内容:

我也尝试将带有 @rpath 的库添加到 Link binary with libraries,但我仍然收到电子邮件。

我现在完全卡住了,因为我不知道我还能在这里做什么,也不知道如何解决这个问题,所以非常感谢您的帮助!

提前致谢!

这里的解决方法是禁用bitcode