Skip to content
New issue

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

Crash 闪退 #36

Open
make1a opened this issue Feb 22, 2022 · 1 comment
Open

Crash 闪退 #36

make1a opened this issue Feb 22, 2022 · 1 comment

Comments

@make1a
Copy link

make1a commented Feb 22, 2022

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

@vimfung
Copy link
Owner

vimfung commented Feb 24, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants