What does “Arg = Exploded” mean in Swift crash log? [duplicate]

冷暖自知 提交于 2019-12-22 03:54:16

问题


I get a crash log from Crashlytics/Fabric which reads like the following:

function signature specialization <Arg[0] = Exploded, Arg[1] = Owned To Guaranteed> of
MyClass.viewWillAppear (MyClass)(Swift.Bool) -> ()

what does exploded mean for Arg[0]? It's weird that there are two arguments because we're talking about viewWillAppear here - is the first argument the object itself?


回答1:


I got this issue a week ago, and thankfully managed to fix it remotely. I believe it is a parsing issue.

The issue was because I was getting an array of strings from the server, and one of the argument was empty, generating a parsing error of the arguments

["String1", "String2", "String3",]

should have been

["String1", "String2", "String3"]

In your case : Look for what is in your viewWillAppear and check for any parsing/serializing. A bad object returned is probably the root cause of this



来源:https://stackoverflow.com/questions/31397116/what-does-arg-exploded-mean-in-swift-crash-log

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!