NativeScript / NativeScript/nativescript-cli
How to pass command line arguments in iOS?
还没有人认领这个 Issue。
- 主要语言
- 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?
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
未指定文件或测试。请从入口点 tns debug ios 开始,检查命令行参数是如何解析并转发到 iOS 应用的。完成的标准是建立一种基于终端传递 -FIRDebugEnabled 的方式,并对该行为进行文档说明或由适当的测试覆盖。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- ios, javascript
- 领域
- cli, mobile
- Issue 类型
- 功能
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100