It looks like some errors in the NSURLErrorDomain are being typecast erroneously to SKError. I suspect this might be the line to blame.
NSURLErrorDomain
SKError