Firebase Xcode linker command error using Firebase Unity SDK

前端 未结 8 1587
悲&欢浪女
悲&欢浪女 2020-12-10 13:33

Firebase Unity SDK 1.1.1. Unity 5.5.0p4 XCode 8.2.1

When using Authentication and Database from Firebase I get the following error when building the project in XCode

相关标签:
8条回答
  • 2020-12-10 14:05

    I had the same problem, after spend couple of hours i got the main problem.

    It was the podfile library's defined specific version.

    target 'Unity-iPhone' do
        pod 'Firebase/Auth', '4.10.0'
        pod 'Firebase/Core', '4.10.0'
    end
    

    When unity build iOS project's podfile they define their latest library version. But when from xcode/terminal try to update pod library from GIT and the specific version is not available then its failed to update and showing this error.

    Solution is simple just don't need to define the specific version. pod will update the GIT's latest version.

    target 'Unity-iPhone' do
        pod 'Firebase/Auth'
        pod 'Firebase/Core'
    end
    
    0 讨论(0)
  • 2020-12-10 14:09

    i had this issue and was fixed by updating the pods installation one way was clearing the locally cached copy and reinstall it again and another way was to force the installation to be from an online source

    it worth mention that the building to IOS was succeeded

    Build completed with a result of 'Succeeded'

    but had an error installing the pods

    Solution one

    on the mac terminal change directory to the builded folder that should contain a Podfile

    executed the following

    $ pod repo remove master
    $ pod install --repo-update
    

    Rebuild the project from unity should install the pods automatically

    Other solution

    Installing from GitHub

    see Firebase pods for more information

    For releases starting with 5.0.0, the source for each release is also deployed to CocoaPods master and available via standard CocoaPods Podfile syntax.

    These instructions can be used to access the Firebase repo at other branches, tags, or commits.

    Background

    See the Podfile Syntax Reference for instructions and options about overriding pod source locations.

    Step-by-step Source Pod Installation Instructions

    For iOS, copy a subset of the following lines to your Podfile:

    pod 'Firebase' # To enable Firebase module, with `@import Firebase` support pod 'FirebaseCore', :git => 'https://github.com/firebase/firebase-ios-sdk.git', :tag => '5.0.0' pod 'FirebaseAuth', :git => 'https://github.com/firebase/firebase-ios-sdk.git', :tag => '5.0.0' pod 'FirebaseDatabase', :git => 'https://github.com/firebase/firebase-ios-sdk.git', :tag => '5.0.0' pod 'FirebaseFirestore', :git => 'https://github.com/firebase/firebase-ios-sdk.git', :tag => '5.0.0' pod 'FirebaseFunctions', :git => 'https://github.com/firebase/firebase-ios-sdk.git', :tag => '5.0.0' pod 'FirebaseMessaging', :git => 'https://github.com/firebase/firebase-ios-sdk.git', :tag => '5.0.0' pod 'FirebaseStorage', :git => 'https://github.com/firebase/firebase-ios-sdk.git', :tag => '5.0.0'

    For macOS and tvOS, copy a subset of the following: pod 'FirebaseCore', :git => 'https://github.com/firebase/firebase-ios-sdk.git', :tag => '5.0.0' pod 'FirebaseAuth', :git => 'https://github.com/firebase/firebase-ios-sdk.git', :tag => '5.0.0' pod 'FirebaseDatabase', :git => 'https://github.com/firebase/firebase-ios-sdk.git', :tag => '5.0.0' pod 'FirebaseStorage', :git => 'https://github.com/firebase/firebase-ios-sdk.git', :tag => '5.0.0'

    1- Make sure you have at least CocoaPods version 1.4.0 - pod --version.

    2- Delete pods for any components you don't need, except FirebaseCore must always be included.

    3- Update the tags to the latest Firebase release. See the release notes

    4- Run pod update.

    0 讨论(0)
提交回复
热议问题