On XCode 6, everything works well on device, but on simulator, sound is not played.
There is my swift code :
var url = NSURL(string: \"http://my.ur
The error occurs because you are trying to get device's sample rate from simulator, which is not possible.
So some hardware functionality will not able to simulated with it.
It can not do the following:
And many more which required device hardware acceleration.
You need to test this in real device.