iOS 友盟错误分析

原创文章
声明:作者声明此文章为原创,未经作者同意,请勿转载,若转载,务必注明本站出处,本平台保留追究侵权法律责任的权利。
全栈老韩
全栈工程师,擅长iOS App开发、前端(vue、react、nuxt、小程序&Taro)开发、Flutter、React Native、后端(midwayjs、golang、express、koa)开发、docker容器、seo优化等。

找到编译archive时候的包:一般是这样~/Library/Developer/XCode/Archives/YYYY-MM-DD/***** DD-MM-YY 下午8.51.xcarchive

就是你上传appstore的文件包

显示包内容:
找到dSYMs文件夹下的:.app.dSYM
找到Products/Applications/文件夹下的
.app

把这两个文件放在同一目录下.

然后在命令行中输入如下命令:

复制代码
atos -arch i386 -o *****.app/*****  0x000235f3
复制代码
atos -arch armv7 -o *****.app/***** 0x000a7943

就会解析地址得到代码信息,
(地址一般是友盟错误信息中可以点击的地址。)

注意:在上面的命令中我用的是i386,也可以根据你生成.App情况来选择使用armv6或者armv7

以下是三者区别:

  • Armv6 binaries are needed if you're targeting iPhone3G.
  • Armv7 binaries are desirable if you're targeting iPhone3GS/4 or iPad.
  • i386 binares are needed if you intent to run your code at the Simulator.

暂无评论,快来发表第一条评论吧