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

Fix iOS v8 runtime crashing #85

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

Archez
Copy link

@Archez Archez commented Apr 29, 2021

fixes #83

This should fix issue #83 when running with an iOS v8 runtime >7.0.6 and/or with latest nativescript/core.
I couldn't figure it out exactly why, but the objc marshaller was crashing with a bad pointer access when trying to wrap the native object params for the button handler methods. Since the native event param was not being used, simply removing it was sufficient to fix the crash.

I also rearranged the button handler implementation/declaration to be more in line with the rest of the nativescript core components (which should hopefully improve garbage collection in theory).

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

Successfully merging this pull request may close these issues.

Crashes on iOS 14.4 when selecting 'Cancel' or 'Done'
2 participants