Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'FIRHeartbeatsPayload' for instance message is a forward declaration #14377

Open
sroze opened this issue Jan 23, 2025 · 3 comments
Open

'FIRHeartbeatsPayload' for instance message is a forward declaration #14377

sroze opened this issue Jan 23, 2025 · 3 comments

Comments

@sroze
Copy link

sroze commented Jan 23, 2025

Description

On a Capacitor application, add the FirebaseMessaging pod causes the application to not build with the following errors:

Image

Especially, we can see two types of errors:

  • Receiver type 'FIRHeartbeatsPayload' for instance message is a forward declaration
  • No visibile @interface for 'FHIRHeartbeatLogger' declares the selector [xxxx]

Image

It's very similar to #12891 which has not been solved yet.

Reproducing the issue

On a recent Capacitor application, add the FirebaseMessaging pod.

Firebase SDK Version

11.7.0

Xcode Version

16

Installation Method

CocoaPods

Firebase Product(s)

Messaging

Targeted Platforms

iOS

Relevant Log Output

If using Swift Package Manager, the project's Package.resolved

No response

If using CocoaPods, the project's Podfile.lock

Expand Podfile.lock snippet
PODS:
  - Capacitor (6.1.2):
    - CapacitorCordova
  - CapacitorApp (6.0.1):
    - Capacitor
  - CapacitorBrowser (6.0.3):
    - Capacitor
  - CapacitorCommunityNativeMarket (6.0.0):
    - Capacitor
  - CapacitorCommunitySqlite (6.0.2):
    - Capacitor
    - SQLCipher
    - ZIPFoundation
  - CapacitorCordova (6.1.2)
  - CapacitorNetwork (6.0.3):
    - Capacitor
  - CapacitorPushNotifications (7.0.0):
    - Capacitor
  - CapacitorSecureStoragePlugin (0.10.0):
    - Capacitor
    - SwiftKeychainWrapper
  - FirebaseCore (11.7.0):
    - FirebaseCoreInternal (~> 11.7.0)
    - GoogleUtilities/Environment (~> 8.0)
    - GoogleUtilities/Logger (~> 8.0)
  - FirebaseCoreInternal (11.7.0):
    - "GoogleUtilities/NSData+zlib (~> 8.0)"
  - FirebaseInstallations (11.7.0):
    - FirebaseCore (~> 11.7.0)
    - GoogleUtilities/Environment (~> 8.0)
    - GoogleUtilities/UserDefaults (~> 8.0)
    - PromisesObjC (~> 2.4)
  - FirebaseMessaging (11.7.0):
    - FirebaseCore (~> 11.7.0)
    - FirebaseInstallations (~> 11.0)
    - GoogleDataTransport (~> 10.0)
    - GoogleUtilities/AppDelegateSwizzler (~> 8.0)
    - GoogleUtilities/Environment (~> 8.0)
    - GoogleUtilities/Reachability (~> 8.0)
    - GoogleUtilities/UserDefaults (~> 8.0)
    - nanopb (~> 3.30910.0)
  - GoogleDataTransport (10.1.0):
    - nanopb (~> 3.30910.0)
    - PromisesObjC (~> 2.4)
  - GoogleUtilities/AppDelegateSwizzler (8.0.2):
    - GoogleUtilities/Environment
    - GoogleUtilities/Logger
    - GoogleUtilities/Network
    - GoogleUtilities/Privacy
  - GoogleUtilities/Environment (8.0.2):
    - GoogleUtilities/Privacy
  - GoogleUtilities/Logger (8.0.2):
    - GoogleUtilities/Environment
    - GoogleUtilities/Privacy
  - GoogleUtilities/Network (8.0.2):
    - GoogleUtilities/Logger
    - "GoogleUtilities/NSData+zlib"
    - GoogleUtilities/Privacy
    - GoogleUtilities/Reachability
  - "GoogleUtilities/NSData+zlib (8.0.2)":
    - GoogleUtilities/Privacy
  - GoogleUtilities/Privacy (8.0.2)
  - GoogleUtilities/Reachability (8.0.2):
    - GoogleUtilities/Logger
    - GoogleUtilities/Privacy
  - GoogleUtilities/UserDefaults (8.0.2):
    - GoogleUtilities/Logger
    - GoogleUtilities/Privacy
  - JcesarmobileSslSkip (0.4.0):
    - Capacitor
  - nanopb (3.30910.0):
    - nanopb/decode (= 3.30910.0)
    - nanopb/encode (= 3.30910.0)
  - nanopb/decode (3.30910.0)
  - nanopb/encode (3.30910.0)
  - PromisesObjC (2.4.0)
  - SQLCipher (4.6.1):
    - SQLCipher/standard (= 4.6.1)
  - SQLCipher/common (4.6.1)
  - SQLCipher/standard (4.6.1):
    - SQLCipher/common
  - SwiftKeychainWrapper (4.0.1)
  - ZIPFoundation (0.9.19)

DEPENDENCIES:
  - "Capacitor (from `../../../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@capacitor/ios`)"
  - "CapacitorApp (from `../../../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@capacitor/app`)"
  - "CapacitorBrowser (from `../../../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@capacitor/browser`)"
  - "CapacitorCommunityNativeMarket (from `../../../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@capacitor-community/native-market`)"
  - "CapacitorCommunitySqlite (from `../../../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@capacitor-community/sqlite`)"
  - "CapacitorCordova (from `../../../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@capacitor/ios`)"
  - "CapacitorNetwork (from `../../../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@capacitor/network`)"
  - "CapacitorPushNotifications (from `../../../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@capacitor/push-notifications`)"
  - "CapacitorSecureStoragePlugin (from `../../../../node_modules/.pnpm/[email protected]_@[email protected]/node_modules/capacitor-secure-storage-plugin`)"
  - FirebaseMessaging
  - "JcesarmobileSslSkip (from `../../../../node_modules/.pnpm/@[email protected]/node_modules/@jcesarmobile/ssl-skip`)"

SPEC REPOS:
  trunk:
    - FirebaseCore
    - FirebaseCoreInternal
    - FirebaseInstallations
    - FirebaseMessaging
    - GoogleDataTransport
    - GoogleUtilities
    - nanopb
    - PromisesObjC
    - SQLCipher
    - SwiftKeychainWrapper
    - ZIPFoundation

EXTERNAL SOURCES:
  Capacitor:
    :path: "../../../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@capacitor/ios"
  CapacitorApp:
    :path: "../../../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@capacitor/app"
  CapacitorBrowser:
    :path: "../../../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@capacitor/browser"
  CapacitorCommunityNativeMarket:
    :path: "../../../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@capacitor-community/native-market"
  CapacitorCommunitySqlite:
    :path: "../../../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@capacitor-community/sqlite"
  CapacitorCordova:
    :path: "../../../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@capacitor/ios"
  CapacitorNetwork:
    :path: "../../../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@capacitor/network"
  CapacitorPushNotifications:
    :path: "../../../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@capacitor/push-notifications"
  CapacitorSecureStoragePlugin:
    :path: "../../../../node_modules/.pnpm/[email protected]_@[email protected]/node_modules/capacitor-secure-storage-plugin"
  JcesarmobileSslSkip:
    :path: "../../../../node_modules/.pnpm/@[email protected]/node_modules/@jcesarmobile/ssl-skip"

SPEC CHECKSUMS:
  Capacitor: 679f9673fdf30597493a6362a5d5bf233d46abc2
  CapacitorApp: 0bc633b4eae40a1f32cd2834788fad3bc42da6a1
  CapacitorBrowser: aab1ed943b01c0365c4810538a8b3477e2d9f72e
  CapacitorCommunityNativeMarket: fca5eb9715ca0b5865e56529d7da65529593176f
  CapacitorCommunitySqlite: 47dab3a2d9a9581a0fe7642cf9cffd34c5d5b358
  CapacitorCordova: f48c89f96c319101cd2f0ce8a2b7449b5fb8b3dd
  CapacitorNetwork: da96b5fff8d05b67f4658503aabb22f65bda2c0f
  CapacitorPushNotifications: c4feed483e03825369c278f5bab75100fb3f94a0
  CapacitorSecureStoragePlugin: ced6025438fbbdbfb9fffec4398e748572fc147b
  FirebaseCore: 3227e35f4197a924206fbcdc0349325baf4f5de4
  FirebaseCoreInternal: d6c17dafc8dc33614733a8b52df78fcb4394c881
  FirebaseInstallations: 9347e719c3d52d8d7b9074b2c32407dd027305e9
  FirebaseMessaging: 00ece041b71ddb52a2862ffdee73fb6e9824bd0c
  GoogleDataTransport: aae35b7ea0c09004c3797d53c8c41f66f219d6a7
  GoogleUtilities: 26a3abef001b6533cf678d3eb38fd3f614b7872d
  JcesarmobileSslSkip: b0f921e9d397a57f7983731209ca1ee244119c1f
  nanopb: fad817b59e0457d11a5dfbde799381cd727c1275
  PromisesObjC: f5707f49cb48b9636751c5b2e7d227e43fba9f47
  SQLCipher: 77fbe633cd84db04b07876dd50766b4924b57d61
  SwiftKeychainWrapper: 807ba1d63c33a7d0613288512399cd1eda1e470c
  ZIPFoundation: b8c29ea7ae353b309bc810586181fd073cb3312c

PODFILE CHECKSUM: 604f3af7a6fa70ab2562c21ed2903492ebeef798

COCOAPODS: 1.15.2
@google-oss-bot
Copy link

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

@sroze
Copy link
Author

sroze commented Jan 23, 2025

Note that using an older version as mentioned in #12891, it works well.

...

target 'App' do
  capacitor_pods

  pod 'FirebaseMessaging', '~> 8.0'
end

...

@paulb777
Copy link
Member

This issue may be better addressed on a Capacitor support channel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants