Build iOS App having Google Sign with support for Mac

此生再无相见时 提交于 2021-01-27 22:15:06

问题


I have manually embedded the Google Sign In framework into an iOS app with the .bundle and .framework files.

After adding the Mac as deployment target with the most recent Xcode and macOS Catalina versions I get the following error message when trying to run the app on the Mac.

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.

Can I somehow fix this problem? Or do I have to wait for Google to release a new version of the framework that is compatible with both iOS and macOS?


回答1:


If the framework is open source, you can open its Xcode project, enable Catalyst and recompile.



来源:https://stackoverflow.com/questions/58239402/build-ios-app-having-google-sign-with-support-for-mac

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!