AudioKit unexpected crash ios with swift on AKOscillator - [AKOscillator operationName]: unrecognized selector sent to instance -
i receiving strange crash when using audiokit build swift based ios 8 application. followed videos , able build , launch audiokit based project using bridging header, etc. in main viewcontroller, have following code based on hello world example:
override func viewdidload() { super.viewdidload() let inst = akinstrument() //let oscillator = akoscillator() //inst.setaudiooutput(oscillator) //akorchestra.addinstrument(inst) //inst.play() }
that runs fine, second uncomment lines below initializing akinstrument, crash shortly after app launches:
0dbfs level = 32768.0 csound version 6.05 (float samples) aug 6 2015 libsndfile-1.0.26pre6 2015-10-22 11:19:15.024 nilg5[1281:37425] 1 midi sources 2015-10-22 11:19:15.025 nilg5[1281:37425] midi source 0: session 1 440.0 2015-10-22 11:19:16.072 nilg5[1281:36836] -[akoscillator operationname]: unrecognized selector sent instance 0x7fb6904b78b0 2015-10-22 11:19:16.160 nilg5[1281:36836] *** terminating app due uncaught exception 'nsinvalidargumentexception', reason: '-[akoscillator operationname]: unrecognized selector sent instance 0x7fb6904b78b0' *** first throw call stack: ( 0 corefoundation 0x0000000110094c65 __exceptionpreprocess + 165 1 libobjc.a.dylib 0x0000000111c64bb7 objc_exception_throw + 45 2 corefoundation 0x000000011009c0ad -[nsobject(nsobject) doesnotrecognizeselector:] + 205 3 corefoundation 0x000000010fff213c ___forwarding___ + 988 4 corefoundation 0x000000010fff1cd8 _cf_forwarding_prep_0 + 120 5 nilg5 0x000000010f43d14b -[akoscillator init] + 43 6 nilg5 0x000000010f430790 _ttofcso12akoscillatorcfms_ft_s_ + 16 7 nilg5 0x000000010f42c2c7 _tfcso12akoscillatorcfms_ft_s_ + 71 8 nilg5 0x000000010f42b564 _tfc5nilg514viewcontroller11viewdidloadfs0_ft_t_ + 308 9 nilg5 0x000000010f42b6e2 _ttofc5nilg514viewcontroller11viewdidloadfs0_ft_t_ + 34 10 uikit 0x0000000110ac91d0 -[uiviewcontroller loadviewifrequired] + 738 11 uikit 0x0000000110ac93ce -[uiviewcontroller view] + 27 12 uikit 0x00000001109e4289 -[uiwindow addrootviewcontrollerviewifpossible] + 58 13 uikit 0x00000001109e464f -[uiwindow _sethidden:forced:] + 247 14 uikit 0x00000001109f0de1 -[uiwindow makekeyandvisible] + 42 15 uikit 0x0000000110994417 -[uiapplication _callinitializationdelegatesformainscene:transitioncontext:] + 2732 16 uikit 0x000000011099719e -[uiapplication _runwithmainscene:transitioncontext:completion:] + 1349 17 uikit 0x0000000110996095 -[uiapplication workspacedidendtransaction:] + 179 18 frontboardservices 0x0000000116ce95e5 __31-[fbsserialqueue performasync:]_block_invoke_2 + 21 19 corefoundation 0x000000010ffc841c __cfrunloop_is_calling_out_to_a_block__ + 12 20 corefoundation 0x000000010ffbe165 __cfrunloopdoblocks + 341 21 corefoundation 0x000000010ffbdf25 __cfrunlooprun + 2389 22 corefoundation 0x000000010ffbd366 cfrunlooprunspecific + 470 23 uikit 0x0000000110995b02 -[uiapplication _run] + 413 24 uikit 0x00000001109988c0 uiapplicationmain + 1282 25 nilg5 0x000000010f430ee7 main + 135 26 libdyld.dylib 0x00000001123a6145 start + 1 27 ??? 0x0000000000000001 0x0 + 1 ) libc++abi.dylib: terminating uncaught exception of type nsexception (lldb)
seems complaining [akoscillator operationname]: unrecognized selector sent instance 0x7fb6904b78b0
... docs allow initialize akoscillator
without parameters...
not sure, ideas??
Comments
Post a Comment