Firebase-ios-sdk: Framework not found FirebaseInstanceID

Created on 16 Jun 2020  路  3Comments  路  Source: firebase/firebase-ios-sdk

Step 0: Are you in the right place?

Yes.

[REQUIRED] Step 1: Describe your environment

  • Xcode version: 11.5 (11E608c)
  • Firebase SDK version: 6.26
  • Firebase Component: Firebase/Analytics, Crashlytics, RemoteConfig
  • Installation method: CocoaPods

[REQUIRED] Step 2: Describe the problem

XCode gives me the following error during build:

Framework not found FirebaseInstanceID

Steps to reproduce:

The issue occurred with one of the latest updates, and I found that I am not the only one with this issue:

https://www.hackingwithswift.com/forums/swift/firestore-pod-failing-after-update/101

And according to the above URL one way to fix this is by adding

pod 'Firebase/Messaging'

to my POD file, although I do not use messaging.

Why am I getting the error, although my integration is fully compliant with the docs?

My podfile.lock:

PODS:
  - Crashlytics (3.14.0):
    - Fabric (~> 1.10.2)
  - Fabric (1.10.2)
  - Firebase/Analytics (6.26.0):
    - Firebase/Core
  - Firebase/Core (6.26.0):
    - Firebase/CoreOnly
    - FirebaseAnalytics (= 6.6.0)
  - Firebase/CoreOnly (6.26.0):
    - FirebaseCore (= 6.7.2)
  - Firebase/RemoteConfig (6.26.0):
    - Firebase/CoreOnly
    - FirebaseRemoteConfig (~> 4.5.0)
  - FirebaseABTesting (3.2.0):
    - FirebaseAnalyticsInterop (~> 1.3)
    - FirebaseCore (~> 6.1)
    - Protobuf (>= 3.9.2, ~> 3.9)
  - FirebaseAnalytics (6.6.0):
    - FirebaseCore (~> 6.7)
    - FirebaseInstallations (~> 1.3)
    - GoogleAppMeasurement (= 6.6.0)
    - GoogleUtilities/AppDelegateSwizzler (~> 6.0)
    - GoogleUtilities/MethodSwizzler (~> 6.0)
    - GoogleUtilities/Network (~> 6.0)
    - "GoogleUtilities/NSData+zlib (~> 6.0)"
    - nanopb (~> 1.30905.0)
  - FirebaseAnalyticsInterop (1.5.0)
  - FirebaseCore (6.7.2):
    - FirebaseCoreDiagnostics (~> 1.3)
    - FirebaseCoreDiagnosticsInterop (~> 1.2)
    - GoogleUtilities/Environment (~> 6.5)
    - GoogleUtilities/Logger (~> 6.5)
  - FirebaseCoreDiagnostics (1.4.0):
    - GoogleDataTransportCCTSupport (~> 3.1)
    - GoogleUtilities/Environment (~> 6.5)
    - GoogleUtilities/Logger (~> 6.5)
    - nanopb (~> 1.30905.0)
  - FirebaseCoreDiagnosticsInterop (1.2.0)
  - FirebaseInstallations (1.3.0):
    - FirebaseCore (~> 6.6)
    - GoogleUtilities/Environment (~> 6.6)
    - GoogleUtilities/UserDefaults (~> 6.6)
    - PromisesObjC (~> 1.2)
  - FirebaseRemoteConfig (4.5.0):
    - FirebaseABTesting (~> 3.1)
    - FirebaseAnalyticsInterop (~> 1.4)
    - FirebaseCore (~> 6.2)
    - FirebaseInstallations (~> 1.1)
    - GoogleUtilities/Environment (~> 6.2)
    - "GoogleUtilities/NSData+zlib (~> 6.2)"
  - GoogleAppMeasurement (6.6.0):
    - GoogleUtilities/AppDelegateSwizzler (~> 6.0)
    - GoogleUtilities/MethodSwizzler (~> 6.0)
    - GoogleUtilities/Network (~> 6.0)
    - "GoogleUtilities/NSData+zlib (~> 6.0)"
    - nanopb (~> 1.30905.0)
  - GoogleDataTransport (6.2.1)
  - GoogleDataTransportCCTSupport (3.2.0):
    - GoogleDataTransport (~> 6.1)
    - nanopb (~> 1.30905.0)
  - GoogleUtilities/AppDelegateSwizzler (6.6.0):
    - GoogleUtilities/Environment
    - GoogleUtilities/Logger
    - GoogleUtilities/Network
  - GoogleUtilities/Environment (6.6.0):
    - PromisesObjC (~> 1.2)
  - GoogleUtilities/Logger (6.6.0):
    - GoogleUtilities/Environment
  - GoogleUtilities/MethodSwizzler (6.6.0):
    - GoogleUtilities/Logger
  - GoogleUtilities/Network (6.6.0):
    - GoogleUtilities/Logger
    - "GoogleUtilities/NSData+zlib"
    - GoogleUtilities/Reachability
  - "GoogleUtilities/NSData+zlib (6.6.0)"
  - GoogleUtilities/Reachability (6.6.0):
    - GoogleUtilities/Logger
  - GoogleUtilities/UserDefaults (6.6.0):
    - GoogleUtilities/Logger
  - Highcharts (8.1.1)
  - nanopb (1.30905.0):
    - nanopb/decode (= 1.30905.0)
    - nanopb/encode (= 1.30905.0)
  - nanopb/decode (1.30905.0)
  - nanopb/encode (1.30905.0)
  - OneSignal (2.14.2)
  - PromisesObjC (1.2.9)
  - Protobuf (3.12.0)

DEPENDENCIES:
  - Crashlytics (~> 3.14.0)
  - Fabric (~> 1.10.2)
  - Firebase/Analytics
  - Firebase/RemoteConfig
  - Highcharts
  - OneSignal (< 3.0, >= 2.11.2)

SPEC REPOS:
  trunk:
    - Crashlytics
    - Fabric
    - Firebase
    - FirebaseABTesting
    - FirebaseAnalytics
    - FirebaseAnalyticsInterop
    - FirebaseCore
    - FirebaseCoreDiagnostics
    - FirebaseCoreDiagnosticsInterop
    - FirebaseInstallations
    - FirebaseRemoteConfig
    - GoogleAppMeasurement
    - GoogleDataTransport
    - GoogleDataTransportCCTSupport
    - GoogleUtilities
    - Highcharts
    - nanopb
    - OneSignal
    - PromisesObjC
    - Protobuf

SPEC CHECKSUMS:
  Crashlytics: 540b7e5f5da5a042647227a5e3ac51d85eed06df
  Fabric: 706c8b8098fff96c33c0db69cbf81f9c551d0d74
  Firebase: 7cf5f9c67f03cb3b606d1d6535286e1080e57eb6
  FirebaseABTesting: 821a3a3e4a145987e80fee3657c4de1cb9adf693
  FirebaseAnalytics: 96634d356482d4f3af8fe459a0ebf19a99c71b75
  FirebaseAnalyticsInterop: 3f86269c38ae41f47afeb43ebf32a001f58fcdae
  FirebaseCore: f42e5e5f382cdcf6b617ed737bf6c871a6947b17
  FirebaseCoreDiagnostics: 4505e4d4009b1d93f605088ee7d7764d5f0d1c84
  FirebaseCoreDiagnosticsInterop: 296e2c5f5314500a850ad0b83e9e7c10b011a850
  FirebaseInstallations: 6f5f680e65dc374397a483c32d1799ba822a395b
  FirebaseRemoteConfig: 1725314c4b89d8853c876099ded037f11bee26db
  GoogleAppMeasurement: 67458367830514fb20fd9e233496f1eef9d90185
  GoogleDataTransport: 9a8a16f79feffc7f42096743de2a7c4815e84020
  GoogleDataTransportCCTSupport: 489c1265d2c85b68187a83a911913d190012158d
  GoogleUtilities: 39530bc0ad980530298e9c4af8549e991fd033b1
  Highcharts: 797408f0144d9efe55d7c377c0284c63dc409d08
  nanopb: c43f40fadfe79e8b8db116583945847910cbabc9
  OneSignal: 1dcb1fd96f9c15a5c352dcfcab9106a7c15eced7
  PromisesObjC: b48e0338dbbac2207e611750777895f7a5811b75
  Protobuf: 2793fcd0622a00b546c60e7cbbcc493e043e9bb9

PODFILE CHECKSUM: eea12fbfc11f17073e283cd05f9abe70fd6a6bb7

COCOAPODS: 1.9.3
instanceid

Most helpful comment

This may be related to the Installations migration. What likely happened is the pod update removed InstanceID in favor of Installations, but you still have a stale -framework FirebaseInstanceID linker flag somewhere in your project. If you find the flag and remove it, the error should go away.

All 3 comments

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.

This may be related to the Installations migration. What likely happened is the pod update removed InstanceID in favor of Installations, but you still have a stale -framework FirebaseInstanceID linker flag somewhere in your project. If you find the flag and remove it, the error should go away.

@morganchen12

Many thanks. That did the trick! :o)

Was this page helpful?
0 / 5 - 0 ratings