nstudio / nativescript-audio

:microphone: NativeScript plugin to record and play audio :musical_note:
Other
149 stars 104 forks source link

JS ERROR Error: Class "AVAudioPlayer" referenced by type encoding not found at runtime #193

Open yayaNdour opened 2 years ago

yayaNdour commented 2 years ago

Hi, i have an issue with my NativeScript App using the nativescript-audio plugin, here is my configuration :

tns ios version : 6.5.4 nativescript cli version : 6.8.0 nativescript-audio version : 5.1.1 IOS Simulator version : ios 14.3 Xcode version : 13.1

Only for IOS versions under ios 15, my application crashes with the following message while trying to play an audio file :

JS ERROR Error: Class "AVAudioPlayer" referenced by type encoding not found at runtime. (evaluating 'new audio.TNSPlayer()')
NativeScript caught signal 11.
Native Stack:

1 0x104263171 sig_handler(int) 2 0x10bbe5d7d _sigtramp 3 0x100000001 4 0x10bac8b23 libunwind::UnwindCursor<libunwind::LocalAddressSpace, libunwind::Registers_x86_64>::step() 5 0x10bacce34 _Unwind_RaiseException 6 0x10b5b2b34 cxa_throw 7 0x10a070158 _objc_exception_destructor(void) 8 0x104212b6f NativeScript::reportFatalErrorBeforeShutdown(JSC::ExecState, JSC::Exception, bool) 9 0x1042533a8 NativeScript::FFICallback::ffiClosureCallback(ffi_cif, void*, void*, void) 10 0x104c4ec90 ffi_closure_unix64_inner 11 0x104c4f6b2 ffi_closure_unix64 12 0x105ffa324 _UIGestureRecognizerSendTargetActions 13 0x105ff7b6c _UIGestureRecognizerSendActions 14 0x105ff6dc0 -[UIGestureRecognizer _updateGestureWithEvent:buttonEvent:] 15 0x105fdbe24 _UIGestureEnvironmentUpdate 16 0x105fdb8a7 -[UIGestureEnvironment _deliverEvent:toGestureRecognizers:usingBlock:] 17 0x105fda9a9 -[UIGestureEnvironment _updateGesturesForEvent:window:] 18 0x105a707ab -[UIWindow sendEvent:] 19 0x105a14310 -[UIApplication sendEvent:] 20 0x1063556af dispatchPreprocessedEventFromEventQueue 21 0x1063582c4 handleEventQueueInternal 22 0x10b0e3bb1 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION 23 0x10b0c84af CFRunLoopDoSources0 24 0x10b0c7a6f __CFRunLoopRun 25 0x10b0c730b CFRunLoopRunSpecific 26 0x10c531a73 GSEventRunModal 27 0x1059f9057 UIApplicationMain 28 0x104c4f4f5 ffi_call_unix64 29 0x11c23e480

Can i have some help ?

EDIT : When i launch the app with Xcode directly on my ios 14.3 device i have this message NativeScript could not load bundle file:///System/Library/Frameworks/AVFAudio.framework