Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ios crash with migrate to ns8. Only in --release #206

Open
bradrice opened this issue Mar 14, 2022 · 1 comment
Open

ios crash with migrate to ns8. Only in --release #206

bradrice opened this issue Mar 14, 2022 · 1 comment

Comments

@bradrice
Copy link

bradrice commented Mar 14, 2022

If I debug in the simulator or do ns debug ios -for-device --release --device --provision

Video plugin works fine and plays video

If I do ns run ios --for-device --release --device --provision

App runs fine except when i go to a page with the video plugin the app crashes. If I remove the plugin from the page, I don't get a crash.

Error in terminal:

*** Terminating app due to uncaught exception 'NativeScript encountered a fatal error: Uncaught TypeError: e.error is not a function
at
defaultErrorLogger(file:///var/containers/Bundle/Application/2AEFBD35-AC59-4231-B944-31E6737F6BDD/classappnativescript.app/app/vendor.js:2:1897501)
at handleError(file:///var/containers/Bundle/Application/2AEFBD35-AC59-4231-B944-31E6737F6BDD/classappnativescript.app/app/vendor.js:2:1897697)
at next(file:///var/containers/Bundle/Application/2AEFBD35-AC59-4231-B944-31E6737F6BDD/classappnativescript.app/app/vendor.js:2:2089347)
at (file:///var/containers/Bundle/Application/2AEFBD35-AC59-4231-B944-31E6737F6BDD/classappnativescript.app/app/vendor.js:2:1495819)
at (file:///var/containers/Bundle/Application/2AEFBD35-AC59-4231-B944-31E6737F6BDD/classappnativescript.app/app/vendor.js:2:1495334)
at (file:///var/containers/Bundle/Application/2AEFBD35-AC59-4231-B944-31E6737F6BDD/classappnativescript.app/app/vendor.js:2:1494838)
at (file:///var/containers/Bundle/Applicat<\M-b\M^@\M-&>

ns doctor:

✔ Your ANDROID_HOME environment variable is set and points to correct directory.
✔ Your adb from the Android SDK is correctly installed.
✔ The Android SDK is installed.
✔ A compatible Android SDK for compilation is found.
✔ Javac is installed and is configured properly.
✔ The Java Development Kit (JDK) is installed and is configured properly.
✔ Xcode is installed and is configured properly.
✔ xcodeproj is installed and is configured properly.
✔ CocoaPods are installed.
✔ CocoaPods update is not required.
✔ CocoaPods are configured properly.
✔ Your current CocoaPods version is newer than 1.0.0.
✔ Python installed and configured correctly.
✔ The Python 'six' package is found.
✔ Xcode version 13.2.1 satisfies minimum required version 10.
✔ Getting NativeScript components versions information...
✔ Component nativescript has 8.2.2 version and is up to date.
✔ Component @nativescript/core has 8.2.1 version and is up to date.
✔ Component @nativescript/ios has 8.2.1 version and is up to date.
✔ Component @nativescript/android has 8.2.2 version and is up to date.

I seem to get a warning when building if it has anything to do with it:

/Volumes/Seagate1T/source/repos/classappnativescript/platforms/ios/Pods/ASBPlayerSubtitling/ASBPlayerSubtitling/ASBPlayerSubtitling.m:41:1: warning:
      method possibly missing a [super awakeFromNib] call [-Wobjc-missing-super-calls]
}
^
1 warning generated.

Android seems to be working fine.

@bradrice
Copy link
Author

I'm sorry, upon further testing, this crash appears to be coming from an unset variable array on the same page. I'm working through the issue and will now close this issue. Apparently, the ios release is more strict than previously with handling this type of error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant