NativeScript / NativeScript/nativescript-cli

How to pass command line arguments in iOS?

未关闭
#5,428 1 条评论 3 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

question
主要语言
JavaScript
星标
1.1k
派生
204
平均合并
1 天 9 小时
30 天内合并 PR
8

描述

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?

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

未指定文件或测试。请从入口点 tns debug ios 开始,检查命令行参数是如何解析并转发到 iOS 应用的。完成的标准是建立一种基于终端传递 -FIRDebugEnabled 的方式,并对该行为进行文档说明或由适当的测试覆盖。

由索引模型根据 Issue 内容生成。

评估

技术栈
ios, javascript
领域
cli, mobile
Issue 类型
功能
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。