question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Firebase InstanceID has been removed - iOS builds failing

See original GitHub issue

Describe the bug We are using fastlane to build iOS apps. Since 11th of May 2021 our builds are failing with error message:

`@capacitor-community/fcm/ios/Plugin/Plugin/Plugin.swift:7:8: no such module ‘FirebaseInstanceID’

import FirebaseInstanceID`

The Firebase iOS SDK (v8.0.0) is now available and Firebase InstanceID has been removed.

There is a migration guide on how to move from Instance ID to Firebase Installations.

Expected behavior After migration there should be no issues with this plugin.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:22
  • Comments:13 (4 by maintainers)

github_iconTop GitHub Comments

11reactions
iOliviercommented, May 18, 2021

I also found a solution without having to change the plugin package.

You can go to ios/App/Podfile and add the desired FirebaseCore version like this underneath the existing pods:

def capacitor_pods
  # Automatic Capacitor Pod dependencies, do not delete
  pod 'Capacitor', :path => '../../node_modules/@capacitor/ios'
  pod 'CapacitorCordova', :path => '../../node_modules/@capacitor/ios'
  pod 'CordovaPlugins', :path => '../capacitor-cordova-ios-plugins'
  pod 'CapacitorCommunityFcm', :path => '../../node_modules/@capacitor-community/fcm'
  pod 'CordovaPlugins', :path => '../capacitor-cordova-ios-plugins'
  # Do not delete

  pod 'FirebaseCore', '~> 7.11.0'
end

After you did the change, don’t forget to run pod update.

7reactions
stewonescommented, Jul 28, 2021

For those having issues with cap v2, try adding this in your app podfile

target 'App' do
  capacitor_pods
  # Add your Pods here
  pod 'Firebase/Messaging', '~> 7.11.0'
end
Read more comments on GitHub >

github_iconTop Results From Across the Web

error: no such module 'FirebaseInstanceID' on ios
FirebaseInstanceID is deprecated now, that is why this error is coming. Remove import FirebaseInstanceID from your AppDelegate.swift and ...
Read more >
Firebase Apple SDK Release Notes - Google
Breaking change: The deprecated Firebase InstanceID has been removed. Use Firebase Installations to manage app instance and use Firebase Messaging to manage ...
Read more >
firebaseinstanceid not found android - You.com
Potentially this is due to an issue with the mock google-services.json, generated from the quickstart script. It seems to be missing the api_key...
Read more >
Solve Capacitor error: no such module FirebaseInstanceID
If you have implemented Firebase Cloud Messaging for notifications, you had to add FirebaseInstanceID package in order to receive a FCM token.
Read more >
Firestore pod failing after update - Hacking with Swift
I update my pods often, so the version my have been upgraded to 6.20 or ... Now it works, looks like they removed...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found