Search code examples
swiftsprite-kitskactionxcode9skaudionode

SKAudioNode has issues doing SKActions in Xcode 9b2


so i have a project that run perfectly fine on xcode 8 but when i am trying to run it on xcode 9b2 it crashes.

i am creating audionode:

let birdSound = SKAudioNode(fileNamed: "fly.mp3")

add it to scene and it works. but if i am doing actions like:

birdSound.run(SKAction.changeVolume(to: 0, duration: 0))
birdSound.run(SKAction.changePlaybackRate(to: 1.1, duration: 0))

it will crash with

AURemoteIO::IOThread (14): EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode=0x0)

last debug lines are:

177: Failed to set processVolumeScalar on device. Error: 560947818 93: ASSERTION FAILURE:

what is going on and why i cant do any SKActions on audio nodes? any thoughts?


Solution

  • in xcode 9b5 it works fine :/ false alarm