Skip to content

How to pass command line arguments in iOS? #5428

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

Open
dusda opened this issue Oct 26, 2020 · 1 comment
Open

How to pass command line arguments in iOS? #5428

dusda opened this issue Oct 26, 2020 · 1 comment
Labels

Comments

@dusda
Copy link

dusda commented Oct 26, 2020

I have a nativescript project that integrates with Firebase. To debug analytics in iOS, Google has this vague documentation:

To enable Analytics Debug mode on your development device, specify the following command line argument in Xcode :

-FIRDebugEnabled

What this actually wants you to do is open the project in Xcode and navigate to Product -> Scheme -> Edit Scheme..., then select Run on the left, pick the Arguments tab, and add -FIRDebugEnabled to the list of Arguments Passed on Launch.

Problem is I'm not using Xcode, I'm just working in VS Code and using a terminal. So...how do I pass this argument myself, through tns debug ios or something?

@pfumagalli
Copy link
Contributor

In case this helps anyone, I just added a PR #5518 that allows specifying extra command line arguments when running in the iOS simulator

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

No branches or pull requests

3 participants