> On Oct 26, 2020, at 3:01 PM, Gabriel Zachmann via Cocoa-dev > <cocoa-dev@lists.apple.com> wrote: > > Is it possible to determine the exact line in the source code where the error > occurred?
The "+ nnnn" thing in each stack line is the byte offset from the start of the function, in the machine code. Not super useful by itself … If the symbol is simply "MyAppName + nnnn" with no function/method, then no symbols for your code were available at the time of the crash. That means they weren't embedded in the code, and no dSYM file was found. Or, if the offset is unrealistically large (like hundreds of KB), then the function/method name is bogus and is simply the nearest named symbol that the stack-dump code could find. I believe it's possible to use the .dSYM file that was produced with the release build of _that exact version_ of your app, to convert those offsets into line numbers — there's a tool called "symbolicate" or something like that. I have never done this myself so I don't know the details. —Jens _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com