tjvantoll / nativescript-social-share

♻️ A NativeScript plugin for using the iOS/Android social sharing widgets
MIT License
94 stars 48 forks source link

crash on ios #55

Open peppeg85 opened 4 years ago

peppeg85 commented 4 years ago

hello, thanks for this plugin, with android i have no problem, with ios it crashes, i use vanilla js, i have these errors in the console:

NativeScript caught signal 11.
Native Stack:
1   0x1060b5251 sig_handler(int)
2   0x7fff51bf5b5d _sigtramp
3   0x0
4   0x7fff51c29b85 libunwind::UnwindCursor<libunwind::LocalAddressSpace, libunwind::Registers_x86_64>::step()
5   0x7fff51c2de58 _Unwind_RaiseException
6   0x7fff4f9fc8bd __cxa_throw
7   0x7fff50b97c44 _objc_exception_destructor(void*)
8   0x7fff23ce1a71 _CFThrowFormattedException
9   0x7fff23ce4c86 -[__NSPlaceholderArray initWithObjects:count:].cold.3
10  0x7fff23c27f74 -[__NSPlaceholderArray initWithObjects:count:]
11  0x7fff23c3c909 -[NSArray initWithArray:range:copyItems:]
12  0x7fff50ba8c92 objc_setProperty_nonatomic_copy
13  0x7fff43315dea -[UIActivityViewController configureActivityViewControllerWithActivityItems:applicationActivities:]
14  0x7fff43315b3f -[UIActivityViewController initWithActivityItems:applicationActivities:]
15  0x106aa6a8d ffi_call_unix64
16  0x10dd8d950
JS Stack:
initWithActivityItemsApplicationActivities([native code])
at share(file: node_modules/nativescript-social-share/social-share.ios.js:7:0)
at shareUrl(file: node_modules/nativescript-social-share/social-share.ios.js:34:0)
at file: app/views/notificationDetails/notificationDetails.js:37:0
at file: node_modules/@nativescript/core/ui/gestures/gestures.ios.js:64:0
at UIApplicationMain([native code])
at run(file: node_modules/@nativescript/core/application/application.ios.js:312:0)
at file: app/app.js:97:0
at ./app.js(file:///app/bundle.js:595:34)
at __webpack_require__(file: app/webpack/bootstrap:750:0)
at checkDeferredModules(file: app/webpack/bootstrap:43:0)
at webpackJsonpCallback(file: app/webpack/bootstrap:30:0)
at anonymous(file:///app/bundle.js:2:61)
at evaluate([native code])
at moduleEvaluation
at
at asyncFunctionResume
at
at promiseReactionJob

Edit:

it crashes on shareUrl, it works on shareText