LuaScriptCore icon indicating copy to clipboard operation
LuaScriptCore copied to clipboard

Crash 闪退

Open make1a opened this issue 3 years ago • 1 comments

Describe the bug

调用 dic = [LSCValue toDictionary] 方法 let data = try JSONSerialization.data(withJSONObject: dic, options: []) 会闪退报错: firebase 崩溃: Fatal Exception: NSInvalidArgumentException Invalid type in JSON write (_NSInlineData)

  • Version :pod 'LuaScriptCore', '2.3.2'

附上找到的资料: https://stackoverflow.com/questions/24984098/iosterminating-app-due-to-uncaught-exception-nsinvalidargumentexception-reas

make1a avatar Feb 22 '22 12:02 make1a

不清楚你的调用过程是怎么样的?单从你提供的信息来看,很有可能是你的JSON字符串结构问题,在toDictionary之前打印一下LSCValue的值是什么?JSON的结构错误也会导致这样的问题。

vimfung avatar Feb 24 '22 05:02 vimfung