NativeScript / NativeScript/nativescript-cli

NS7 App iOS 14 Simulator no console or trace output

オープン
#5,454 コメント 6 件 リアクション 4 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
JavaScript
スター
1.1k
フォーク
204
平均マージ
1日 9時間
マージ済み PR(30日)
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.

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

app/main-view-model.ts の hello-world 再現から始め、iOS 14 と iOS 13 のシミュレータで ns run ios を実行して、ターミナル出力を比較します。Issue に記載されている console.log と Trace.write の動作を確認します。完了条件は、iOS 13 と同じように iOS 14 のターミナルに両方のメッセージが表示されることです。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
ios, javascript
領域
cli, mobile-dev
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。