What is the number next to the method name in a st

2020-06-17 13:35发布

I have a simple question, I suppose, but I cannot find anything.

What's the number at the end of line 6, + 429?

stack trace image

1条回答
家丑人穷心不美
2楼-- · 2020-06-17 13:56

It means that the return address for stack frame 6 is 429 bytes past the start of the -[#### tableView:cellForRowAtindexPath:] function. It might be inside that function, or it might be past the end of the function but not inside any other known function.

UPDATE

In order for the symbolicator to turn those return addresses into line numbers, you must have the .dSYM file that the linker created when it created the executable file. Each executable is tagged with a UUID, and the .dSYM file is tagged with the same UUID. The symbolicator looks at the UUID of the executable and uses Spotlight (OS X's filesystem search support) to find the matching .dSYM. If you didn't save the .dSYM, you will have a hard time turning the addresses into line numbers. Note that when you tell Xcode to build an archive (Product > Archive), the archive contains both the executable and its matching .dSYM.

查看更多
登录 后发表回答