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

Crash with plugin on XCode 10.2

Open vcooley opened this issue 6 years ago • 0 comments

Environment Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):

  • CLI: 5.3.1
  • Cross-platform modules: 5.3.1
  • iOS Runtime: 5.3.1
  • Plugin(s):
    "nativescript-input-mask": "~1.0.5",

Describe the bug My plugin works when built and run with XCode 10.1 but not 10.2. When I run the code and load a page that has an InputMask, the app crashes without displaying any error. I have pinpointed where the error occurs, but have not been able to fix the problem.

The crash occurs when attempting to set the listener property on the delegate here.

The native dependency is a fork of a pod here.

I have some deprecation warnings, but have also refactored the deprecated code with the same results.

To Reproduce I have uploaded a sample project that shows the problem. Tap an item to go to a screen that has an InputMask. This produces no errors if you build with XCode 10.1 or earlier but will crash in XCode 10.2.

Relevant XCode versions: XCode 10.1 XCode 10.2

Expected behavior Crash should not occur or an error occur during the build.

Sample project Sample project which works on XCode 10.1 but not 10.2: xcode-bug.zip

vcooley avatar Apr 10 '19 15:04 vcooley