iOS SKAction playSoundFileNamed fails?

On tvOs I tried SKAction playSoundFileNamed to play a short sound. Unfortunately it didn’t work. After some research I found this as solution:

//SKAction.playSoundFileNamed(“Achievement.caf”, waitForCompletion: true)
self.runAction(SKAction.playSoundFileNamed(“Achievement.caf”, waitForCompletion: false))

Leave a Reply

Your email address will not be published. Required fields are marked *