NativeScript / NativeScript/nativescript-cli
NS7 App iOS 14 Simulator no console or trace output
还没有人认领这个 Issue。
- 主要语言
- JavaScript
- 星标
- 1.1k
- 派生
- 204
- 平均合并
- 1 天 9 小时
- 30 天内合并 PR
- 8
描述
Environment
nativescript has 7.1.0 version and is up to date.
@nativescript/core has 7.1.0 version and is up to date.
@nativescript/ios has 7.1.0 version and is up to date.
@nativescript/android has 7.0.1 version and is up to date.
Node v14.15.2 / NPM v6.14.9
Xcode 12.2
Big Sur 11.1
Mac Mini (M1 2020) Curious to know if my hardware would have an effect on this issue?
Describe the bug
When running an app in the iOS 14 simulator, I cannot see any console.log or Trace.write. If I run a 13.X Simulator I can see
To Reproduce
Create a hello world app using ns create
Run the app in the iOS simulator any device.
app/main-view-model.ts
import { Observable, Trace } from '@nativescript/core';
//...
onTap() {
this._counter--;
this.updateMessage();
alert('tapped'); // Works
console.log('logged console'); // Does not work
Trace.write(
"Trace shown to console",
Trace.categories.Debug
); // Does not work
}
Expected behavior
For the console log and trace messages to show in the terminal that is running ns run ios
As you can imagine this makes debugging projects painful!!
Any insight appreciated.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 app/main-view-model.ts 中的 hello-world 复现开始,并在 iOS 14 和 iOS 13 模拟器上运行 ns run ios,对比终端输出。检查 issue 中描述的 console.log 和 Trace.write 行为;当两条消息在 iOS 14 终端中的显示结果与 iOS 13 上一致时,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- ios, javascript
- 领域
- cli, mobile-dev
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100