Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Returning certain values from native iOS code results in immediate crash #622
From @bnussey on August 11, 2016 6:25
Since the latest NativeScript release (2.2.0) returning certain values from native iOS code results in a crash. I contribute to nativescript-videoplayer and since the new release, this line of code are resulting in an immediate crash:
This is the crash message:
This was working absolutely fine before the upgrade.
In terms of doing some research about the error message, I found this: http://stackoverflow.com/a/23798704/3900606
Copied from original issue: NativeScript/NativeScript#2568
Thanks for reporting this bug. The problem seems to be related to how the iOS runtime handles struct marshalling on x86_64 architecture. The 2.2 NativeScript CLI now builds for this architecture by default.
In the meantime you can use a 32-bit simulator, like the iPhone 4s one. We'll provide a fix shortly.