mk-5 / gdx-fireapp

libGDX Firebase API
Apache License 2.0
65 stars 21 forks source link

iOS Building Issue #67

Open congcoi123 opened 1 year ago

congcoi123 commented 1 year ago

Hi team, Thanks so much for your efforts working on this awesome project. I am trying to integrate this into my project but encountering this issue. Have you ever coped with it?

Screenshot 2023-03-20 at 07 27 46

I am looking forward to your support.

mk-5 commented 1 year ago

hi hi! :)

mhmm I think it could be somehow related to arch of firebase libraries. Do you have arm64 iOS simulator? Which version of firebase sdk have you downloaded?

congcoi123 commented 1 year ago

@mk-5 Hi, thank you so much for your feedback.

I also copied libraries from the example:

Screenshot 2023-04-01 at 20 37 56
mk-5 commented 1 year ago

@congcoi123

okay, that make sense - I mean error :) error tell us: 'building for iOS, but linkink in object file built for iOS Simulator'

The problem is with the frameworks you copied from the e2e project. There are different framework builds for simulator, and different for device. E2E projects build are limited to the simulator frameworks. You need to grab a fresh copy of frameworks from firebase, and use them. I guess it should solve the problem

congcoi123 commented 1 year ago

@mk-5 Thanks for your reply. Could you please let me know where can I get those fresh copies?

mk-5 commented 1 year ago

@congcoi123 I think that Firebase SDK is available on firebase site, or github repo. We are using those bindings at the moment: https://github.com/dkimitsa/robovm-robopods/tree/1.18.0-SNAPSHOT/firebase - so you need firebase sdk 8.x

https://github.com/firebase/firebase-ios-sdk/releases?page=2

Pretty old version, I think I need to update bindings soon :)

congcoi123 commented 1 year ago

@mk-5 Thanks for your prompt reply. I will give it a try.

congcoi123 commented 1 year ago

Hi @mk-5, it can be compiled and even initialize the FireApp without any issues as I followed your instructions. I appreciate it. However, when I try to log in by GG, the following issue is thrown. Do you have any idea what is the cause and how to fix it? Thank you for your time. Screenshot 2023-06-08 at 15 54 36

mk-5 commented 1 year ago

@congcoi123 mhmm have no idea, client id should be there, but yes ... it really looks like there is a problem with that line: https://github.com/mk-5/gdx-fireapp/blob/master/gdx-fireapp-ios/src/pl/mk5/gdx/fireapp/ios/auth/GoogleAuthProvider.java#LL51C13-L51C100

ClientID should come from your GoogleService-Info.plist