firebase / firebase-cpp-sdk

Firebase C++ SDK
http://firebase.google.com
Apache License 2.0
274 stars 114 forks source link

[FR] How to build Catalyst universal #1134

Open b0f1df79 opened 1 year ago

b0f1df79 commented 1 year ago

I'm trying to build a Firebase C++ library for Catalyst. I see in apple.toolchain.cmake that supports 2 platforms:

But in the available libraries (darwin, ios, tvos) I see the universal folder. So, can I ask how to build a library that supports all archs?

google-oss-bot commented 1 year ago

I found a few problems with this issue:

a-maurice commented 1 year ago

I'm not 100% sure what the differences are between Catalyst and other types of Mac builds, but generally the universal libraries contain symbols for both x86_64 and arm64, and would likely be what you need to use. You could also try linking directly against the source code, if your project is configured for that.

DellaBitta commented 1 year ago

Hi @b0f1df79,

The toolchain file that you've linked was borrowed from another open source project and has more features than what the Firebase C++ SDK currently uses. Our underlying dependency of the Firebase iOS SDK has beta support for Catalyst but we currently don't build and test against it.

I'll add this as a feature request. Everyone, please upvote this ticket if this is something you're interested in. Thanks!