Coder Social home page Coder Social logo

crash's Introduction

crash

crash 堆栈定位

##crash 日志定位crash 位置

首先是获取线上版本的dSYM文件, 并在dSYM文件找到app文件 ,拷贝dSYM文件和app文件到同一目录, 然后执行命令:

先cd到改目录执行
运行脚本   xcrun atos --arch arm64 -o app  -l 0x0000000101844a6c 0x00000001028814D8

注意  0x0000000101844a6c 是起始地址  , 0x00000001028814D8 是结束地址 与下面的+ 17025644相关(0x0000000101844a6c + 17025644 得到的)
  app 是上面的APP文件名

如:

stack:(
"0   xxxxProject         0x0000000101844a6c xxxxProject + 17025644",    0x00000001028814D8

"1   xxxxProject         0x00000001018437f0 xxxxProject + 17020912", 0x000000010287EFE0

"2   xxxxProject         0x0000000101843418 xxxxProject + 17019928", 0x000000010287E830

"3   xxxxProject         0x0000000100c339c4 xxxxProject + 4372932",  0x000000010105F388
"4   libdispatch.dylib                   0x00000002038b4a38 <redacted> + 24",
"5   libdispatch.dylib                   0x00000002038b57d4 <redacted> + 16",
"6   libdispatch.dylib                   0x0000000203859c80 <redacted> + 684",
"7   libdispatch.dylib                   0x0000000203866030 <redacted> + 372",
"8   libdispatch.dylib                   0x00000002038668d4 <redacted> + 128",
"9   libsystem_pthread.dylib             0x0000000203a961b4 _pthread_wqthread + 464"
)

运行后的结果

+[xxxClass backUpTrackData:withProgressBlock:completionBlock:] (in xxxxProject) (xxxClass.m:0)
-[xxxClass startBackUpTrack:] (in xxxxProject) (xxxClass.m:408)
-[xxxClass addTrackBackUpTaskForTracks:] (in xxxxProject) (xxxClass.m:0)
__35-[xxx2Class trackAutoUpload]_block_invoke (in xxxxProject) (AutoBackupHelper.m:246)

crash's People

Contributors

sfwan2014 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.