NativeScript / NativeScript/nativescript-cli

NS + Angular | IOS Simulator stuck on NativeScript Splash or black app screen

未關閉
#5,696 3 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

bug-pending-triage
主要語言
JavaScript
星號
1.1k
分支
204
平均合併
1 天 9 小時
30 天內合併 PR
8

描述

Issue Description

When i try to launch the created app on my ios simulator on my MacBook Pro, it gets stuck on a black screen when opening the app (iPhone) or on the blue NativeScript launch screen (iPad).

The app in question is simply a single screen with an input field, button and a text field that copies the input field text to the text field when clicking the button. The only CSS used is to make the button coloured and the displayed text centered and bold.

Have tried:

  • Restarting MacBook Pro
  • Restarting Simulator
  • Changing Simulator device
  • Deleting node_modules folder and running npm install
  • Invalidating IntelliJ caches
  • Shaking device
  • Erasing all content and settings from device
Reproduction

'tns run ios --bundle'

Relevant log output (if applicable)

No response

Environment
OS: macOS 12.6
CPU: (8) x64 Intel(R) Core(TM) i5-1038NG7 CPU @ 2.00GHz
Shell: /bin/zsh
node: 18.11.0
npm: 8.19.2
nativescript: 8.3.3

# android
java: 11.0.17
ndk: Not Found
apis: Not Found
build_tools: Not Found
system_images: Not Found

# ios
xcode: 14.0.1/14A400
cocoapods: 1.11.3
python: 3.10.8
python3: 3.10.8
ruby: 2.7.6
platforms: 
  - DriverKit 21.4
  - iOS 16.0
  - macOS 12.3
  - tvOS 16.0
  - watchOS 9.0


### Dependencies

json
"dependencies": {},
"devDependencies": {
  "tslint": "^6.1.3",
  "typescript": "^4.8.4"
}
Please accept these terms

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

研究方向

先使用回報的 macOS、Xcode、NativeScript 和 Node 版本,透過 tns run ios --bundle 重現問題,然後檢查 iOS 模擬器的輸出,以了解應用程式為何停留在啟動畫面或黑畫面。當範例應用程式能在模擬器中正常啟動並進入其唯一的畫面時,即表示完成。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
angular, ios, javascript, typescript
領域
cli, mobile
Issue 類型
缺陷
難度
4/5
預估耗時
3-5 天
活躍度
停滯
描述清晰度
需要釐清
新手友好度
25/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。