EddyVerbruggen / nativescript-plugin-firebase

:fire: NativeScript plugin for Firebase
https://firebase.google.com
MIT License
1.01k stars 441 forks source link

M1 Issue - FirebaseSDK #1867

Open sudiptosen opened 2 years ago

sudiptosen commented 2 years ago

Please post if you are facing any issues with M1. If it's working fine, please post your config or Custom Podfile.

Steps to reproduce:

  1. Install NS 8 on an M1 MacOs
  2. Run ns plugin add @nativescript/firebase
  3. Run npm run config from node_module\@nativescript\firebase
  4. Run ns build ios from project root folder

Build fails with Linker error.

The Firebase team has been working on M1 issues like in this issue: Issue 7125

Question Is:

  1. Is there a way to force install Firebase SDK 8. The current install forces SDK 6.3
  2. Is there a way to install only selected Pods? Even if I exclude Analytics, the pod is being installed

Please post if you are facing the same issue.

Thanks!

7ammer commented 2 years ago

I'm also having issues with this :(

I had a project with firebase in it. I removed firebase and the linker error stops and build continues.

mmartinez23 commented 2 years ago

I am also having the same problem.

Is there any solution? I tried cleaning the project, reinstalling the plugins and even cleaning CocoaPods cache but it is still happening.

tujlaky commented 2 years ago

I have the same issue. Tried to overwrite the dependencies but the core version is hardwired so no luck

tujlaky commented 2 years ago

Okay, looks like if I change the version directly in the node_modules it starts working: In the file node_modules/@nativescript/firebase/platforms/ios/Podfile:

platform :ios, '10.0'
pod 'Firebase/Core', '~>8.14.0'

Not sure if everything will work so more testing needed. But the build is running.