Firebase-ios-sdk: Binary Firebase Frameworks for tvOS

Created on 24 Dec 2019  路  15Comments  路  Source: firebase/firebase-ios-sdk

Describe your environment

  • Xcode version: 11.3
  • Firebase SDK version: 6.14
  • Firebase Component: Analytics
  • Component version: 6.14

Describe the problem

Steps to reproduce:

Are there Firebase Frameworks specifically built for tvOS like https://firebase.google.com/download/ios? Right now, I am trying to use Firebase without CocoaPods. I have been successfully linking Crashlytics and Fabric frameworks without issue. When I attempt to link Firebase, I get the following error...

ld: in FirebaseAnalytics/FirebaseCore.framework/FirebaseCore(FIRAnalyticsConfiguration.o), building for tvOS, but linking in object file (FirebaseAnalytics/FirebaseCore.framework/FirebaseCore(FIRAnalyticsConfiguration.o)) built for iOS, file 'Firebase/ios/FirebaseAnalytics/FirebaseCore.framework/FirebaseCore' for architecture arm64

Relevant Code:

        #-----------------------------------------------------------------
        # Include FirebaseCore Framework
        set(FIREBASE_CORE_FRAMEWORK_PATH ${PATH_TO_FIREBASE_ANALYTICS}/FirebaseCore.framework)
        set(FIREBASE_CORE_HEADERS_PATH ${FIREBASE_CORE_FRAMEWORK_PATH}/Headers)

        add_library(firebasecore STATIC IMPORTED)
        set_property(TARGET firebasecore PROPERTY IMPORTED_LOCATION ${FIREBASE_CORE_FRAMEWORK_PATH}/FirebaseCore)
        target_link_libraries(${PROJECT_NAME} PUBLIC firebasecore)
        include_directories(SYSTEM ${FIREBASE_CORE_HEADERS_PATH})
tvOS feature request zip-builder

All 15 comments

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

We don't support binary distributions for tvOS.

Details about tvOS support at https://github.com/firebase/firebase-ios-sdk#tvos-macos-and-catalyst

So this should also rule out using the google provided Carthage binaries then on tvOS as well, correct?

Yep, same story for Carthage. However, it might not be too hard to add tvOS support to the ZipBuilder here and we would accept PRs.

+1. I would like to have tvOS carthage for .framework files as my company security didnt approve CocoaPods and my project runs in Xcode 11 with "legacy build " config so can't use xcFramework

We also require the similar support for tvOS and trying to look for options but could not succeed. At last, I tried to add the project files and then tried to move on

@gangadharbonda Can explain in more detail like which are the framework source files needed to be added to tvos project?

@paulb777 Is there any progress on this as some of my client tVOS apps cant leverage crash reporting due to this

@vijayviswas We don't have near term plans for this. The best near term approach would be to build it yourself. We would consider a PR as well.

@paulb777 - Is the pod for analytics for tvOS? I tried below in tvOS cocopods and it doesnt install any pods. All other pods are installed. As there are no "Analytics" pods I dont see any "crash free user" data in tvOS firebase crashlytics portal.
pod 'Firebase/Analytics'

To see this data, make sure your app has Google Analytics for Firebase and the latest Firebase Crashlytics SDK.

@vijayviswas We do not currently support Analytics for tvOS. see #2011

Hello folks, I got Crashlytics working on tvOS without Cocoapods or XCFramework bundles. You can read the story here: https://medium.com/@Javan.Poirier/integrating-firebase-crashlytics-for-tvos-without-cocoapods-or-xcframework-support-a8f4b389c7c2

We're planning to add tvOS and macOS to the zip distribution in the next release for the Firebase products that support those platforms.

Thank you!

Was this page helpful?
0 / 5 - 0 ratings