firebase / firebase-ios-sdk

Firebase SDK for Apple App Development
https://firebase.google.com
Apache License 2.0
5.48k stars 1.44k forks source link

[FR]: VisionOs #12024

Open fishandphil opened 8 months ago

fishandphil commented 8 months ago

Description

Good morning

Is it possible to be pointed out to any documentation or thread explaining how to compile a XCFramework for Firebase that is compatible with VisionOS

Thank you

API Proposal

No response

Firebase Product(s)

Firestore

google-oss-bot commented 8 months ago

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.

paulb777 commented 8 months ago

Thanks for the request. We'll likely include visionOS slices in xcframeworks in 2024. In the meantime, please refer to Apple's documentation.

PSchmiedmayer commented 5 months ago

@paulb777 Are there any updates regarding to include visionOS builds in XCFrameworks? With the device launching soon, it would be nice to use Firebase as a dependency on the Apple Vision Pro for native visionOS apps.

CC @Supereg

paulb777 commented 5 months ago

We're considering the xcframework support later in the spring when we drop Xcode 14 support. In the meantime, visionOS is supported via SPM source distributions.

PSchmiedmayer commented 5 months ago

Thank you for the answer @paulb777! We will use the source distribution for now but look forward to the binary dependencies in the future once you drop Xcode 14 support 👍

rae commented 4 months ago

Ok it's March now and both the device and Xcode 15.3 have been out for a while. Any update?

paulb777 commented 4 months ago

The App Store continues to support Xcode 14 through April.

ygee07 commented 4 months ago

Is it possible to build an archive for submission to the App Store using the open --env ... and then doing a Product > Archive?

If no, are there any guides we can follow to build an Archive using Firestore as source distribution?

paulb777 commented 4 months ago

@ygee07 There's nothing special about archiving the source distribution. At the cost of its slow build time, it makes Firestore like every other Firebase product except Analytics.

StephenHodgson commented 3 months ago

+1 for tracking

paulb777 commented 3 months ago

This may be feasible before Firebase 11 since we're planning to start requiring a minimum of Xcode 15.2 starting with Firebase 10.25.0.

arthurschiller commented 2 months ago

+1, would be great to not be forced anymore to always use the --env FIREBASE_SOURCE_FIRESTORE detour.

mesqueeb commented 1 month ago

@paulb777 just a quick question, why did you remove it from the Firebase 11 milestone?

paulb777 commented 3 weeks ago

The task is more challenging than initially thought - our binary distributions still depend on CocoaPods, which does not yet have good support for VisionOS. Also, the priority remains lower than many other projects. Please add thumbs-up to indicate interest.

mesqueeb commented 3 weeks ago

@paulb777 My current setup is in Package.swift

dependencies: [
    .package(url: "https://github.com/firebase/firebase-ios-sdk.git", from: "10.28.1"),
]
// ...
dependencies: [.product(name: "FirebaseFirestore", package: "firebase-ios-sdk")]

But the downsides are:

  1. it takes very long to build even though I only use Firestore in my project.
  2. I have to open Xcode with a special terminal command every time.

I imagine 2. will get solved eventually, but 1 is giving me the most pain. Do you have suggestions how I can speed up Firebase build times? (especially for cases where we only need to use Firestore)

Thanks in advance.