Error building Player: iOS framework addition failed due to a CocoaPods installation failure - firebase

I've just updated Firebase in my Unity project to Firebase 10.4.0 and now when I try to build, I get the error below while failing the build.
Error building Player: iOS framework addition failed due to a CocoaPods installation failure. This will will likely result in an non-functional Xcode project.
After the failure, "pod repo update" was executed and failed. "pod install" was then attempted again, and still failed. This may be due to a broken CocoaPods installation. See: https://guides.cocoapods.org/using/troubleshooting.html for potential solutions.
I've checked minimum compatibility with the new version of Firebase and am using what's listed below.
Unity 2021.3.18f1
Cloud Firestore, Firebase App(Core), and Firebase Cloud Messaging 10.4.0
External Dependency Manager for Unity 1.2.175
Cocoapods I've tried versions 1.10.2 and 1.11.3 (started with 1.10.2 when I got the issue, redownloaded 1.10.2 to no avail and then tried 1.11.3, same issue)
Ruby 2.6.10p210
I could be wrong, but it seems like Unity is not detecting my current version of cocoapods, trying to install it, and failing.
Any help is greatly appreciated, I've spent 2 days on this already :/
I've redownloaded cocoapods version 1.10.2 as well as updated to 1.11.3 and the error persists. I've checked dependancies and everything seems to be compatible.
I've looked at other stack overflow posts and nothing has helped with my issue.

Related

CocoaPods could not find compatible versions for pod "RNFBApp"

I am trying to install firebase analytics in my react native application. For that I am following the link for documentation
https://enappd.com/blog/firebase-analytics-in-react-native-app/101/
My iOS deployment target is 9.0 in the xcode and also 9.0 in the Pods file. But when I tried to install the two plugins
yarn add #react-native-firebase/analytics
yarn add #react-native-firebase/app
I tried to do
cd ios && pod install
I got the error:
[!] CocoaPods could not find compatible versions for pod "RNFBApp":
In Podfile:
RNFBApp (from `../node_modules/#react-native-firebase/app`)
Specs satisfying the `RNFBApp (from `../node_modules/#react-native-firebase/app`)` dependency were found, but they required a higher minimum deployment target.
Then I googled this error none of them are working solution for me. I tried
rm Podfile.lock
pod install --repo-update
Still the same issue
Then I updated the deployment target to 10.0. Then it was installed successfully. But now I am not able to build the application for iOS because it is giving error
Typedef redefinition with different types ('uint8_t' (aka 'unsigned char') vs 'enum clockid_t')
This was happening in the Flipper library of the react native. Then I reverted back my code and now my deployment target is again 9.0 and I am stuck.
Please anyone can guide me to solve this issue.

Firebase CLI giving segmentation fault on Ubuntu

I'm having a hard time with firebase CLI,when I install it with npm, either locally in a projet or globally, and I call the command firebase it gives Segmentation fault with no further details.
I firs thought that the problem was with my version of Node since I was using 9.x, I moved back to 8.x versions, and reinstalled firebase with no success, I upgraded to 12.x, with no success too always same error.
I'm using NVM to handle my node versions properly, but still I can't find a fix for this problem.
nvm list gives this :
-> v8.11.3
v8.13.0
v12.3.0
system
When I run npm list firebase-tools it gives firebase-tools#7.9.0, I also tried uninstalling and reinstalling with no success .

Cannot update firebase tools from 3.19.1

Prior to version 4.0.0 being released I had no problems with my app. I have been trying to update Firebase Tools since 3.19.3 was released and it will not work. It says that it updates without any errors but the tools are stuck on version 3.19.1. It is not updating.
After the release of 4.0.0 hosting no longer works. Cloud functions and Firestore are working without issue. I don't get any errors. It just doesn't work. I've been tying everything I can and searching all over forums for answers and nothing.
Hosting is not working. Static assets are not loading. It says that index.html cannot be found...but that is because there is no index.html because I am using express-handlebars templating engine. I have index.handlebars which was working fine before the release of firebase-tools version 4.0.0.
Still can't update firebase-tools to the latest version.
The issue was that I had firebase-tools installed in two different directories on my computer. The directory that was being updated was not the directory that my project was using. I'm still not sure how that happened but I uninstalled firebase and node and reinstalled them and that solved the problem.
To update firebase-tools, just run this command in the terminal:
curl -sL firebase.tools | upgrade=true bash
note: you must have curl installed.

Android Studio Gradle Sync Error "The library com.google.android.gms:play-services-base is being requested by various other libraries"

I have updated all the firebase and google gms dependencies and still am getting this error, I don't know what's wrong?
Error-The library com.google.android.gms:play-services-base is being requested by various other libraries at [[11.0.1,11.0.1], [15.0.1,16.0.0), [15.0.1,15.0.1]], but resolves to 15.0.1. Disable the plugin and check your dependencies tree using ./gradlew :app:dependencies.
You must use firebase-ui:3.3.1 for compatibility with the Firebase SDK and Support Lib versions you are using

Firestore is failed to build with Flutter for iOS

I want to add Firestore to Flutter app, and I have problems running it on iOS.
I already added this line to pubspec.yaml
cloud_firestore: ^0.6.3
Flutter is updated. Flutter doctor says that I have v0.3.1.
While compiling app for iOS simulator I got this build error
Xcode's output: ↳ /
Users/*********/.pub-cache/hosted/pub.dartlang.org/firebase_core-0.2.3/ios/Classes/FirebaseCorePlugin.m:7:9:
fatal error: 'Firebase/Firebase.h' file not found
#import <Firebase/Firebase.h>
^~~~~~~~~~~~~~~~~~~~~
1 error generated
I also run pod update to make sure that it is not issue with cocoapods.
UPDATE
After another research I found that deleting #use_frameworks! from Podfile in iOS folder let's project to compile. But what should be done in case when this can't be deleted?
The update to this gives me enough information to diagnose (hopefully). Flutter wasn't very good at supporting #use_frameworks & swift, but that was fixed fairly recently (mid-april 2018). However, it may not have made it to the beta channel yet at time of writing.
What was going on when #use_frameworks was set previously is that it wasn't linking everything into the right libraries, and a cocoapods bug was stopping it from finding certain files. The newest version of everything uses dynamic linking but has static_framework=true in the podfile for dependencies with static dependencies so that everything they need actually get linked into the right place.
This is fixed & tested on the master branch/channel, but should probably have made it to the dev branch/channel by now.
Here's the steps to makes sure your environment will support the fix, from this other github issue:
make sure you have Cocoapods 1.5.0 installed (pod --version should
say >= 1.5.0)
change any dependencies you have on the firebase_xxx, google_sign_in, or cloud_firestore plugins to the newest versions
(look for changelog entries referring to Cocoapods 1.5.0)
change your ios/Podfile to the newest version on Flutter master branch
(https://github.com/flutter/flutter/tree/master/packages/flutter_tools/templates/cocoapods)
delete ios/Podfile.lock and ios/Pods
switch to Flutter master (or dev) branch using flutter channel <branch>
flutter clean ; flutter run

Resources