What is the number next to the method name in a stack trace?

后端 未结 1 1656
鱼传尺愫
鱼传尺愫 2021-02-14 06:01

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

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

1条回答
  •  我在风中等你
    2021-02-14 06:14

    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.

    0 讨论(0)
提交回复
热议问题