Firebase Firestore "Could not build module 'nanopb' - swift

Im trying to try out the new firebase firestore database. My pod file has these two dependencies. My project will build if I don't include firestore.
pod 'Firebase/Core'
pod 'Firebase/Firestore'
Im getting the errors "Could not build module 'nanopb'" and "Unknown type name 'FOUNDATION_EXPORT'" in several places. I was wondering if this is a known issue with Firestore. I figured I could lower the version on Firestore but I'm unsure what to go to.
My pod versions are:
Firebase 4.5.0
FirebaseFirestore (0.9.1)
UPDATE: I built a new project and ran into the same error. At this point I can only imagine this version of firestore has errors or I'm not including something I need to. Is there a recommended version to use for now?

Make sure you're on a version of CocoaPods greater than 1.2.1. I was trying this in a Firebase code lab and got the same result as you until I updated to match the displayed CocoaPods requirement.
I'd thought I had a newer version of CP installed but when I ran pod --version it turned out I was running 1.1.1. Oops!

Related

"firebase deploy --only hosting" suddenly failing with "Error: Failed to list functions for <PROJECT>"

My firebase hosting deployments have suddenly started failing both in my Github CI Workflows and from my local machine.
$ firebase deploy --only hosting
=== Deploying to '<project>'...
i deploying hosting
Error: Failed to list functions for <project>
The project in question does not have any functions, and only hosts a static site. Google searches for "Failed to list functions" turn up empty, it seems like not a common problem. The only leads I can find indicate some kind of network error.
I have updated my firebase-tools, logged out and in again to generate a new CI token, tried the process from my Github workflows and also manually from my machine, all to the same effect.
I can't find any information about this problem, except that the error seems to come from this part of the firebase-tools codebase:
https://github.com/firebase/firebase-tools/blob/c0f19a32845135108c75a1050024965cb1e3f52d/src/gcp/cloudfunctions.ts
My firebase tools version was 11.14.0. I changed that to 11.13.0. Installed this specific version through npm install -g firebase-tools#11.13.0. After that I could successfully deploy.
I came across the issue. using firebase-tools version 10.5 or upgrading it to blaze plan fixed my issue

Recently upgraded from Firebase 8.8 => 8.16 and now I have Firebase Instance ID error

I recently upgraded Firebase in my Swift app because I wanted to add App Check and I decided to update all the pods. Was only 8 minor releases 8.8 => 8.16. Now I am receiving
Firebase Instance ID is not compatible with Firebase 8.x+. Please
remove the dependency from the app.
I have removed my pods, cleaned, rebuilt, reinstalled.
I have restarted, cleaned, built.
I have removed App Check.
I have removed Messaging (which I've never used except for an experiment once).
I have no reference to Firebase Instance Id except in the FIR files which are Firebase's. Tried to follow the get started in the Firebase docs and they say use the Swift Package Manager (not sure if that was instead of CocoaPods?).
Any insight into this? It's obviously a new version issue, but would love to have to newest version for security vulnerability and any performance updates they've done. But my last resort will be to downgrade back to 8.8.

receiving "framework not found MeasurementNanoPB" error on updating firebase pods to latest version

Earlier was using 5.7.0 but there are some issue related to firebase storage. to find the solution of this I read somewhere that I need to update the firebase with latest version i.e 5.12.0 Or greater.
I am updating a new version but facing "framework not found MeasurementNanoPB" error. Search a lot regarding the same but no solution found.
There are no relavent steps, anyone who have updated firabse with latest version might have received the same error.
Tried manually installing the firebase sdk.
Resolved!
Tried deleting Pod.lock file, removed all the pods related to firebase from the Podfile. install pod without firebase. When it is done, add all the pods one by one for firebase.
It still gives an error for "GRPCClient not found". Add below framework in Podfile.
pod gRPC-ProtoRPC.
Then got error for "measurement nanopb.framework" not found so just follow below steps:
1) Clean project
2) Remove derived data from respective folder
3) Now search for "nanopb" in whole project(you will find under OtherLinkerFlags) and remove it.
4) Now Install POD again.
And you are done. Now the project will run without errors.
According to https://firebase.google.com/support/release-notes/ios
Version 5.14.0 - December 4, 2018, fixes this:
The FirebaseAnalytics CocoaPod corrects its dependency on the GoogleAppMeasurement CocoaPod (#2151).
Did you try to update to Firebase 5.14.0 ?
Otherwise, did you try to include pod 'Firebase/Performance'in your podfile ?

AWS Appsync working example in Swift of s3 image upload?

I'm following this tutorial here:
https://docs.aws.amazon.com/appsync/latest/devguide/building-a-client-app-ios.html
I'm having some issues getting it to work, wondering if anyone has a working example.
Current issues:
Pods don't match up to the tutorial (awss3 and awsappsync require
different versions of AWSCore (2.6.6 vs 2.6.12)
When using using different pod versions (apsync 2.6.7 and awss3 2.6.6) - the code generated by api-appsync-codegen
doesn't compile - it doesn't create an S3Object class - but tries to
extend it.
Thanks for the help.
AppSync SDK release of 2.6.14 fixes this issue. Now it takes dependency on latest available version of code. You should be able to run pod install --repo-update and be able to get the latest installation.
Thanks,
Rohan

Unable to deploy using firebase 3.0.0

I'm trying to deploy using firebase 3.0.0 latest CLI version.
Unfortunately I get this errors:
Error: Unable to authorize access to project XXXX
Note: This version of the Firebase CLI is only compatible with projects upgraded
to the new Firebase Console. To access firebase.com apps, you will need to
use a previous version: npm install -g firebase-tools#^2.1
Any ideas?
As a matter of fact I was trying to deploy to a custom domain that was not yet verified.
My bad :(
Sorry guys.
I believe you need to upgrade your project to the new Firebase at firebase.google.com. If you haven't you should check out the announcements at Google I/O 2016.