NativeScript / NativeScript/nativescript-cli
NS7 App iOS 14 Simulator no console or trace output
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- JavaScript
- Star
- 1.1k
- Fork
- 204
- Merge trung bình
- 1 ngày 9 giờ
- Pull request đã merge (30 ngày)
- 8
Mô tả
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.
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Bắt đầu với bản tái hiện hello-world trong app/main-view-model.ts và chạy ns run ios trên các trình mô phỏng iOS 14 và iOS 13, đồng thời so sánh đầu ra của terminal. Kiểm tra hành vi của console.log và Trace.write được mô tả trong issue; hoàn tất khi cả hai thông báo xuất hiện trong terminal iOS 14 giống như trên iOS 13.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- ios, javascript
- Lĩnh vực
- cli, mobile-dev
- Loại issue
- Lỗi
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100