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

[Analytics]: Enable debug mode when using Flutter on a Mac when testing a Mac App #12651

Closed
1 task done
stephane-archer opened this issue Apr 16, 2024 · 2 comments
Closed
1 task done
Labels
platform: macos Issues / PRs which are specifically for MacOS. plugin: analytics resolution: solution-provided A solution has been provided in the issue.

Comments

@stephane-archer
Copy link

Is there an existing issue for this?

  • I have searched the existing issues.

Which plugins are affected?

Analytics

Which platforms are affected?

macOS

Description

I tried everything I could find on the internet. I can't Enable debug mode when using Flutter on a Mac when testing a Mac App. Can you check if it works for you and how are you able to enable it?

Reproducing the issue

any app with firebase analytics that work on mac should do the job

Firebase Core version

2.19.0

Flutter Version

3.19.5

Relevant Log Output

No response

Flutter dependencies

Expand Flutter dependencies snippet
Replace this line with the contents of your `flutter pub deps -- --style=compact`.

Additional context and comments

No response

@stephane-archer stephane-archer added Needs Attention This issue needs maintainer attention. type: bug Something isn't working labels Apr 16, 2024
@russellwheatley
Copy link
Member

@stephane-archer - Open your macOS project in Xcode:

cd macos
xed .

The above open project in Xcode.

Now add -FIRDebugEnabled to your command line arguments

Run the app from Xcode (rather than via Flutter CLI). Unfortunately, there is no way of running Analytics debug mode from Flutter. It has to be from Xcode because you need the command line argument. See: #11780

@russellwheatley russellwheatley added plugin: analytics platform: macos Issues / PRs which are specifically for MacOS. resolution: solution-provided A solution has been provided in the issue. and removed Needs Attention This issue needs maintainer attention. type: bug Something isn't working labels Apr 16, 2024
@stephane-archer
Copy link
Author

Thanks a lot @russellwheatley, it finally works. I was adding -FIRDebugEnabled to the command line arguments but was using flutter run for testing.
I wish it was explained in the documentation that it has to be run from Xcode.
I hope #12650 can fix this for others.

@firebase firebase locked and limited conversation to collaborators May 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
platform: macos Issues / PRs which are specifically for MacOS. plugin: analytics resolution: solution-provided A solution has been provided in the issue.
Projects
None yet
Development

No branches or pull requests

2 participants