Hi,
After upgraded to Xcode 7.3, Swift 2.2.
In the code,
func handleInfo(info: [NSObject: AnyObject]) {
let aps = info["aps"]
if let message = aps!["alert"] as? String {
.....
}
}it will keep showing error for this line: if let message = aps!["alert"] as? String
( Downcast from 'String?!' to 'Sting' only unwraps optionals; did you meant to use '!!'?)
But if I build and run, it will run successfully without any issue.
However, it pretty annoying that it keep showing up when I coding.
Anyway to fix that?