How to fix "Clang Error: linker command failed with exit code 1 (use -v to see invocation)" in Swift?

How to fix "Clang Error: linker command failed with exit code 1 (use -v to see invocation)" in Swift?

我将 GoogleMobileAds.framework 放入我的应用程序中,当我尝试将其存档(验证并提交到 App Store)时它不起作用,它发现了一些错误。

当我启动这些应用程序时,我的 mac 的名称是 retina 但后来我恢复了我的 mac,现在它的名称是 blacksn0w。 如何修复它们?

App 1:

App 2:

发生此问题是因为您的 GoogleAdmob SDK 是使用 Enable Bitcode = no 构建的,但您的项目目标是使用 Enable Bitcode = yes 构建的。

因此只需在目标的 buid 设置中将其更改为 NO。