Kaushik Makwana
Kaushik Makwana

Reputation: 2576

NativeScript : IOS app crashed on splash screen

I am using NativeScript 6.0.2, When I test app in simulator and real device its work fine. Then i archive project and uploaded ipa for testFlight successfully, But when i install app in device from testFlight its crashed on splash screen.

tns info

✔ Getting NativeScript components versions information...
✔ Component nativescript has 6.0.2 version and is up to date.
✔ Component tns-core-modules has 6.0.3 version and is up to date.
✔ Component tns-android has 6.1.0-2019-07-23-185153-03 version and is up to date.
✔ Component tns-ios has 6.0.1 version and is up to date.

Please help to resolve this issue.

Here is the device log

enter image description here

I found some red path into Build Phases section(XCode), Is there any issues with them?

Here is the image of Build Phases

enter image description here

Upvotes: 1

Views: 900

Answers (3)

Kamil Kafoor
Kamil Kafoor

Reputation: 306

I don't know for what exact reason but I was facing the same exact issue as well. But after using tns prepare ios --release this worked and there's no crashing issue once build.

Upvotes: 0

Kaushik Makwana
Kaushik Makwana

Reputation: 2576

Finally, After some investigation, I tried to prepare app for Ios using command tns prepare ios --release and then upload archive from XCode. Its worked for me.

Upvotes: 0

Manijak
Manijak

Reputation: 732

Don't know if it will help but here is a tip, this is what I usually do when similar issues happen:

  • Connect the device (iPhone) to your Mac.
  • Open XCode and go to "Window > Devices & Simulators".
  • Your device should be visible in the left pane under "Connected".
  • Select the device, then on the right side you can either:
    • View Device Logs (check latest logs, perhaps you find some error here)
    • Open Console (open the console, then start the app, see what happens)

Hope it helps

Upvotes: 1

Related Questions