Following the great example of How do I decode HTML entities in swift? I have managed to decode a HTML entity. However, running my app in iOS simulator causes no errors while testing it on a real device do.
I'm getting the following error:
Thread 1: EXC_BAD_ACCESS (code=1, address=0xc)
On this line:
let attributedString = NSAttributedString(data: encodedData, options: attributedOptions, documentAttributes: nil, error: nil)!
How do you go about solving this?