Skip to content

error when set $NSFirebaseAnalyticsWithoutAdIdSupport=true #128

@romulowspp

Description

@romulowspp

Hello!

I have a problem using firebase-analytics. I'm trying to use $NSFirebaseAnalyticsWithoutAdIdSupport=true in my Podfile and i find some problems.

First problem

The modification in Podfile didn't happen in the first run and only when I changed something in the project. So we need to use a different hook. The project is using before-checkForChanges.

Second problem

When the project runs the Hook, it breaks the project because it puts the var at the top of the file, creates a new target with the same name as the current target, and breaks the build.

Generated Podfile in platforms folder:
Screen Shot 2022-09-06 at 18 22 40

The error in console:
Screen Shot 2022-09-06 at 18 24 22

I created a sample project to reproduce this problem.

https://github.com/romulowspp/sample-firebase

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