NativeScript / NativeScript/nativescript-cli

How to pass command line arguments in iOS?

Open
#5,428 1 comment 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

question
Dominant language
JavaScript
Stars
1.1k
Forks
204
Avg merge
1d 9h
Merged PRs (30d)
8

Description

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?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files or tests are named. Start with the tns debug ios entry point and inspect how command-line arguments are parsed and forwarded to the iOS app. Done means establishing a terminal-based way to pass -FIRDebugEnabled, with the behavior documented or covered by an appropriate test.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, javascript
Domain
cli, mobile
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.