Code Monkey home page Code Monkey logo

otoolanalyse's Introduction

Otool解析工具:检查Mach-O文件中无用的类和方法

概述

项目界面使用的是LinkMap项目,只是其中的逻辑修改了,主要是为了自己用来分析Mach-O文件。分享出来大家参考使用。

这个工具是专为用来分析项目的Mach-O文件,检查Mach-O文件中无用的类和方法。

使用说明

1、打开LinkMap.xcodeproj,并运行,就可以看到工具界面

WX20210511-133124.png

2、点击“选择文件”按钮,选择Otool生成的文件(如何生成Otool详见下方的:如何获得Otool文件)

3、点击“开始”按钮,就可以看到未使用的类

WX20210511-133213.png

4、勾选解析方法,点击“开始”按钮,就可以看到未使用的方法

WX20210511-145816.png

4、点击“输出文件”,可以将结果输出到文本文档中

如何获得Otool文件

  1. Xcode打包导出ipa,把ipa后缀改为zip,然后解压缩,取出.app中的mach-o文件
  2. 打开 terminal,运行命令:otool -arch arm64 -ov XXX > XXX.txt,其中XXX是mach-o文件的名字
  3. 回到本应用,点击“选择文件”,打开刚刚生成XXX.txt文件
  4. 点击“开始”,解析文件
  5. 点击“输出文件”,得到解析后的文件
  6. 勾选“解析方法”,然后点击“开始”。得到的是未使用的方法

参考

LinkMap

联系我

如有问题或建议欢迎通过邮件联系我 [email protected]

最后

如果喜欢,请顺手我一个star吧~ :)

otoolanalyse's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.