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
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
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
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
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.
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.