NativeScript / NativeScript/nativescript-cli

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

Open
#5,696 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug-pending-triage
Dominant language
JavaScript
Stars
1.1k
Forks
204
Avg merge
1d 9h
Merged PRs (30d)
8

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue with tns run ios --bundle using the reported macOS, Xcode, NativeScript, and Node versions, then inspect the iOS simulator output for why the app remains on the splash or black screen. Done means the sample app launches normally in the simulator and reaches its single screen.

Written by the indexing model from the issue text.

Assessment

Tech stack
angular, ios, javascript, typescript
Domain
cli, mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.