NativeScript / NativeScript/nativescript-cli
NS7 App iOS 14 Simulator no console or trace output
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1.1k
- Forks
- 204
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 8
Description
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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the hello-world reproduction in app/main-view-model.ts and run ns run ios on iOS 14 and iOS 13 simulators, comparing terminal output. Check the console.log and Trace.write behavior described in the issue; done means both messages appear in the iOS 14 terminal as they do on iOS 13.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios, javascript
- Domain
- cli, mobile-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100