Skip to content

Duplicate symbols with pod 'Firebase/AnalyticsWithoutAdIdSupport' #2

@amaurydavid

Description

@amaurydavid

Summary

When using the pods Firebase/AnalyticsWithoutAdIdSupport and BatchFirebaseDispatcher, Xcode fails to build due to duplicate symbols.

Reproduction steps

  1. Have a podfile like:
pod 'Firebase/AnalyticsWithoutAdIdSupport', '~> 7.11.0'
pod 'Batch', '~> 1.17.1'
pod 'BatchFirebaseDispatcher', '~> 2.0.0'
  1. Run pod install.
  2. Try building your app.

Logs

(...)
duplicate symbol '_APMIncludeAPMScreenClassNameWindowCategory' in:
    path/to/DerivedData/myapp-hifbnfpmnmjptbeisshlcbknoxfs/Build/Products/Entreprise Debug Preprod-iphonesimulator/XCFrameworkIntermediates/GoogleAppMeasurement/GoogleAppMeasurement.framework/GoogleAppMeasurement(UIWindow+APMScreenClassName.o)
    path/to/DerivedData/myapp-hifbnfpmnmjptbeisshlcbknoxfs/Build/Products/Entreprise Debug Preprod-iphonesimulator/XCFrameworkIntermediates/GoogleAppMeasurementWithoutAdIdSupport/GoogleAppMeasurementWithoutAdIdSupport.framework/GoogleAppMeasurementWithoutAdIdSupport(UIWindow+APMScreenClassName.o)
ld: 527 duplicate symbols for architecture x86_64

Specifications

SDK Version

1.17.1

Installation method

Cocoapods 1.10.1

Relevant development tools versions

Xcode 12.5

Additional information

When using pod 'Firebase/Analytic'~> 7.11.0' the issue disappears.
It looks to be the same issue as this ticket on the Firebase's github.
Could you provide a way to support Firebase/AnalyticsWithoutAdIdSupport ? Something like a subspec ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions