构建 iOS 具有 Google 签名并支持 Mac 的应用程序

Build iOS App having Google Sign with support for Mac

我已经手动将 Google 登录框架嵌入到带有 .bundle 和 .framework 文件的 iOS 应用中。

在使用最新的 Xcode 和 macOS Catalina 版本添加 Mac 作为部署目标后,我在尝试 运行 [=25] 上的应用程序时收到以下错误消息=].

Building for Mac Catalyst, but the linked framework 'GoogleSignIn.framework' was built for iOS + iOS Simulator. You may need to restrict the platforms for which this framework should be linked in the target editor, or replace it with an XCFramework that supports both platforms.

我能以某种方式解决这个问题吗?还是我必须等待 Google 发布与 iOS 和 macOS 兼容的新版本框架?

如果框架是开源的,您可以打开它的Xcode项目,启用Catalyst并重新编译。