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

[__NSArrayM insertObject:atIndex:]: #154

Open
vennassafir opened this issue Oct 14, 2018 · 1 comment
Open

[__NSArrayM insertObject:atIndex:]: #154

vennassafir opened this issue Oct 14, 2018 · 1 comment

Comments

@vennassafir
Copy link

vennassafir commented Oct 14, 2018

Hi,

I used this plugin on my project . Android is okey but ios has problem.
Xcode console like this;

2018-10-14 07:18:18.132381+0300 Appname[55053:1869587] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSArrayM insertObject:atIndex:]: object cannot be nil'
*** First throw call stack:
(
0 CoreFoundation 0x000000011313d12b __exceptionPreprocess + 171
1 libobjc.A.dylib 0x0000000112061f41 objc_exception_throw + 48
2 CoreFoundation 0x000000011317d0cc _CFThrowFormattedException + 194
3 CoreFoundation 0x000000011306c2d5 -[__NSArrayM insertObject:atIndex:] + 1285
4 Appname 0x000000010c37916c -[NativeAudioAsset initWithPath:withVoices:withVolume:withFadeDelay:] + 508
5 Appname 0x000000010c3a79c4 __30-[NativeAudio preloadComplex:]_block_invoke + 388
6 libdispatch.dylib 0x0000000114cf02f7 _dispatch_call_block_and_release + 12
7 libdispatch.dylib 0x0000000114cf133d _dispatch_client_callout + 8
8 libdispatch.dylib 0x0000000114cf6251 _dispatch_queue_override_invoke + 1458
9 libdispatch.dylib 0x0000000114cfd102 _dispatch_root_queue_drain + 772
10 libdispatch.dylib 0x0000000114cfcda0 _dispatch_worker_thread3 + 132
11 libsystem_pthread.dylib 0x00000001151b35a2 _pthread_wqthread + 1299
12 libsystem_pthread.dylib 0x00000001151b307d start_wqthread + 13
)

in my ionic code is here;

scope.nativeAudio
.preloadComplex(
val.id.toString(),
val.url,
val.rangeValue / 1000,
1,
0
)
.then(function() {
scope.nativeAudio.play(val.id.toString());
scope.nativeAudio.loop(val.id.toString());
});

Please help me...
Thanks

@danielgoodwin97
Copy link

Did you ever find an answer to this one?

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

2 participants