I am learning to do the registration using the remote sql. I only ask the user to input the email address and password, then press "register" button. The registration information will be stored in the remote database. the app build successfully. However, when i input the email address and password, then the app stops at the sentence.
let json = try! NSJSONSerialization.JSONObjectWithData(data!, options: .MutableContainers) as? NSDictionary
saying that it has the error of
EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode=0x0).
I also take a look at the output
"fatal error: 'try!' expression unexpectedly raised an error:
Error Domain=NSCocoaErrorDomain Code=3840 "No value." UserInfo=
{NSDebugDescription=No value.}: file
/Library/Caches/com.apple.xbs/Sources/swiftlang/swiftlang-
700.1.101.15/src/swift/stdlib/public/core/ErrorType.swift, line 50 (lldb) ".
I don't know how to deal with it. Please help. Thanks.