GithubHelp home page GithubHelp logo

Comments (9)

robingenz avatar robingenz commented on June 18, 2024

Thanks for reporting the issue. Please also share your Xcode debug console output after the error occurred.

from capacitor-firebase.

okletstryit avatar okletstryit commented on June 18, 2024

Xcode debug.txt

Thank you for replying. Here is all the logs I have in Xcode

from capacitor-firebase.

okletstryit avatar okletstryit commented on June 18, 2024

@robingenz I would be grateful for advice on how to workaround this issue if you know the cause of it until you get it fixed on your side

from capacitor-firebase.

robingenz avatar robingenz commented on June 18, 2024

It seems like you did not set up Firebase correctly. The GoogleService-Info.plist file is missing.
Edit: See https://github.com/capawesome-team/capacitor-firebase/blob/main/docs/firebase-setup.md#ios

from capacitor-firebase.

okletstryit avatar okletstryit commented on June 18, 2024

@robingenz It seems I did not add it to git, or something went wrong with xCode. I added it to my test repo now, the issue is still here

from capacitor-firebase.

robingenz avatar robingenz commented on June 18, 2024

You should not add Firebase packages to XCode manually (e.g. Package.resolved). This is all handled by the Capacitor plugin. I removed the packages and tested your reproduction example and could not find any problems:

⚡️  WebView loaded
⚡️  To Native ->  FirebaseFirestore getDocument 71085217
⚡️  To Native ->  SplashScreen hide 71085218
⚡️  TO JS undefined
⚡️  TO JS {"snapshot":{"path":"users\/2NkGwKiBHFV1K5kDg9fJOcig78u2\/lessons\/lesson_1","id":"lesson_1","data":{"b":2,"a":1}}}

from capacitor-firebase.

okletstryit avatar okletstryit commented on June 18, 2024

@robingenz Sorry for the dumb question, this is my first capacitor project. Could you please explain what Firebase packages I should remove and from where?

from capacitor-firebase.

robingenz avatar robingenz commented on June 18, 2024

These are the necessary changes: robingenz/capawesome-team-capacitor-firebase-issue-523@0cc5d28

from capacitor-firebase.

okletstryit avatar okletstryit commented on June 18, 2024

@robingenz Thanks so much! It works! I added these "wrong" libraries after reading some of the tutorials.

For those who maybe has the same issue, I removed all Firebase-specific packages from Xcode in App-General-Frameworks section.

from capacitor-firebase.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.