ios-jsc icon indicating copy to clipboard operation
ios-jsc copied to clipboard

App crashes on iPhone 5 / iOS 10.3 simulator and device

Open NickIliev opened this issue 6 years ago • 5 comments

From @chrisse27 on May 18, 2018 20:52

Did you verify this is a real problem by searching the NativeScript Forum and the other open issues in this repo?

Yes.

Tell us about the problem

App crashes on IPhone 5 (Simulator and device). App does not crash on newer iPhone versions.

Which platform(s) does your issue occur on?

iOS

Please provide the following version numbers that your issue occurs with:

  • CLI: 4.0.1 / 4.02
  • Cross-platform modules: 4.0.0
  • Runtime(s): 4.0.1

Please tell us how to recreate the issue in as much detail as possible.

tns create test-app
cd test-app
tns run ios (use iPhone 4S or 5 / iOS 8.4, 9.3 or 10.3)

The app crashes. This started happening with NS 4. It cannot be reproduced with NS 3.4.3. This is the log:

May 18 22:39:58 ChristophsMBP3 nscrashcore[26646]: assertion failed: 17E202 14E8301: libxpc.dylib + 65908 [099EE567-D51F-3277-B929-5FBFDFDE1116]: 0x7d
May 18 22:39:58 ChristophsMBP3 SpringBoard[22197]: [KeyboardArbiter] HW kbd: Failed to set (null) as keyboard focus
May 18 22:39:58 ChristophsMBP3 com.apple.CoreSimulator.SimDevice.10DFF776-A173-410A-ACED-299AEC32184B[22181] (UIKitApplication:org.nativescript.nscrashcore[0xab16][22202][26646]): Service exited due to Segmentation fault: 11
May 18 22:40:08 ChristophsMBP3 assertiond[22202]: Deleted job with label: UIKitApplication:org.nativescript.nscrashcore[0xab16][22202]

Is there code involved? If so, please share the minimal amount of code needed to recreate the problem.

No additional code involved

Copied from original issue: NativeScript/NativeScript#5837

NickIliev avatar May 21 '18 07:05 NickIliev

Hi @chrisse27,

Thank you for reporting this issue. We've managed to reproduce it using iOS Simulator, but according to our tests the crash doesn't occur on a real iPhone 5 device. We'll investigate further and keep you informed about any progress in fixing it.

mbektchiev avatar May 21 '18 11:05 mbektchiev

Hi @mbektchiev,

thanks for looking into this. When running the app on the device (iPhone 5, iOS 8.2) I get the following error

file:///app/vendor.js:1:13865: JS ERROR ReferenceError: Can't find variable: UILayoutGuide

On iOS 10.3 it works for iPhone 5.

chrisse27 avatar May 22 '18 09:05 chrisse27

@chrisse27 This error is expected because NativeScript core modules have dropped support for iOS 8.x since version 4.0. For more information on this matter see NativeScript v4.0 Breaking changes.

mbektchiev avatar May 22 '18 10:05 mbektchiev

I see, thanks for the hint. So then it's really "only" a Simulator related issue.

chrisse27 avatar May 22 '18 10:05 chrisse27

Same problem occurs on iphone5 simulator running iOS 9.x with nativescript 4.1.1 Glad to hear that this is only a simulator related issue

FBorgonjen avatar Jun 20 '18 10:06 FBorgonjen