NativeScript / NativeScript/nativescript-cli
NS7 App iOS 14 Simulator no console or trace output
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- JavaScript
- Sterne
- 1.1k
- Forks
- 204
- Ø Merge
- 1 T. 9 Std.
- Gemergte PRs (30 T.)
- 8
Beschreibung
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.
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne mit der hello-world-Reproduktion in app/main-view-model.ts und führe ns run ios auf iOS-14- und iOS-13-Simulatoren aus, wobei du die Terminalausgabe vergleichst. Überprüfe das im Issue beschriebene Verhalten von console.log und Trace.write; abgeschlossen ist die Aufgabe, wenn beide Meldungen im iOS-14-Terminal genauso erscheinen wie unter iOS 13.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- ios, javascript
- Bereich
- cli, mobile-dev
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100