Closed santyas closed 3 months ago
Well chatgpt suggest me config a podfile with firebase google etc pods inside. I think isn't necessary bc in your example this config isn't exist. I've also cloned your repo and without any aditional config it ran the ios sim perfectly 🫤 What am I missing?
@santyas looks like something is wrong with your ios dependencies, because from logs it seems like it can't find Firebase or GoogleSignIn dependencies. Maybe in XCode check that in iosApp target -> Framework, Libraries section GoogleSignIn and FirebaseAuth is added. Also try clean -> rebuild, gradle resync to see what happens
Not sure if it would be related, but another thing that I noticed in your logs it searches path both ../shared/ and ../composeApp path. Maybe you forgot somewhere to change shared module name. Just a guess
Maybe in XCode check that in iosApp target -> Framework, Libraries section GoogleSignIn and FirebaseAuth is added. Also try clean -> rebuild, gradle resync to see what happens
I can confirm that I added two dependencies
Not sure if it would be related, but another thing that I noticed in your logs it searches path both ../shared/ and ../composeApp path. Maybe you forgot somewhere to change shared module name. Just a guess
I have not detected it :O
@santyas maybe try in new project to see if it still happens
also @santyas check this, looks like sometimes there can be problem with library/framework linking in XCode: https://stackoverflow.com/questions/33728359/when-do-you-have-to-link-frameworks-and-libraries-to-an-xcode-project
also @santyas check this, looks like sometimes there can be problem with library/framework linking in XCode: https://stackoverflow.com/questions/33728359/when-do-you-have-to-link-frameworks-and-libraries-to-an-xcode-project
Interesting to keep in mind. But I noticed that I updated the basename and bundlename in previous commits, so possibly this has unlinked something 🫤 I started a new project without edit it and KMPAuth works perfect 👍🏻
@santyas same issue actually occurred to me today. Thanks for mentioning this. When I look at in XCode frameworks that project uses, I saw that it is missiong out FirebaseAuth. So in case someone has same problem make sure in your framework/libraries sections these exists. (FirebaseMessaging you can ignore it was added for Push Notifications)
Hello Mirzamehdi!
First I want to thank you for your help and the effort you make with this project :)
I followed your steps to use the google sign-in with firebase auth but I can't run it on my ios simulator. Inside android console I get this error:
Also I tried to run it inside xcode but:
I've installed firebase and googlesignin packages into xcode by File > Package dependencies... I'm using compose multiplatform (from jetbrains wizard) and Kotlin 2.0.
Please let me know if you need to see some piece of code :)