问题
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