We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug
调用 dic = [LSCValue toDictionary] 方法 let data = try JSONSerialization.data(withJSONObject: dic, options: []) 会闪退报错: firebase 崩溃: Fatal Exception: NSInvalidArgumentException Invalid type in JSON write (_NSInlineData)
附上找到的资料: https://stackoverflow.com/questions/24984098/iosterminating-app-due-to-uncaught-exception-nsinvalidargumentexception-reas
The text was updated successfully, but these errors were encountered:
不清楚你的调用过程是怎么样的?单从你提供的信息来看,很有可能是你的JSON字符串结构问题,在toDictionary之前打印一下LSCValue的值是什么?JSON的结构错误也会导致这样的问题。
Sorry, something went wrong.
No branches or pull requests
Describe the bug
调用 dic = [LSCValue toDictionary] 方法
let data = try JSONSerialization.data(withJSONObject: dic, options: [])
会闪退报错:
firebase 崩溃:
Fatal Exception: NSInvalidArgumentException
Invalid type in JSON write (_NSInlineData)
附上找到的资料:
https://stackoverflow.com/questions/24984098/iosterminating-app-due-to-uncaught-exception-nsinvalidargumentexception-reas
The text was updated successfully, but these errors were encountered: