Coder Social home page Coder Social logo

occhaos's Introduction

OCChaos

使用一种廉价的方式来实现在iOS马甲包制作过程中,修改文件md5值,前后缀修改,垃圾代码生成,垃圾代码加入工具。

环境依赖

不支持python2

安装步骤

  • python要在3以上版本
pip install occhaos

使用步骤

1.config文件是必须的,必须是json格式,参照格式如下
{
  "pre_str":"TY",
  "pre_to_str":"TYZ",
  "suf_set" :[".h", ".m", ".xib", ".storyboard", ".mm"],
  "project_path" : "/Volumes/Files/Document/TestIpa/TestIpa",
  "pbxpro_path": "/Volumes/Files/Document/TestIpa/TestIpa.xcodeproj/project.pbxproj",
  "img_suf_set":[".png", ".jpg"],
  "file_floadPath":"/Volumes/Files/Document/TestIpa/TestIpa",
  "classArray":["NSString", "UILabel", "NSDictionary", "NSData", "UIScrollView", "UIView", "UITextView", "UITableView",
              "UIImageView"],
  "h_file_mark_arr":["l;", "m;", "n;", "q;", "y;"],
  "m_file_mark_arr":["n];", "w];", "m];", "c];", "p];", "q];", "l];"],
  "output_path":"/Volumes/Files/Document/TestIpa/out_put",
  "关于参数的说明(该字段不做修改,其余字段按需修改)":{
    "pre_str":"需要修改的类名前缀 (需替换)",
    "pre_to_str":"新的类名前缀 (需替换)",
    "suf_set" :"需要搜寻以下文件类型 (根据自己需求替换)如 '.h', '.m', '.xib', '.storyboard', '.mm'",
    "project_path" : "项目路径   (找到自己的项目路径)",
    "pbxpro_path": "项目project.pbxproj文件路径 需要更新配置文件中的类名 (找到自己的项目project.pbxproj路径)",
    "img_suf_set":"图片的结尾后缀 数组",
    "file_floadPath":"在目标.h  .m 文件所在的路径",
    "classArray":".h文件里属性的类型从这个数组里随机选(按需修改)",
    "h_file_mark_arr":".h   .m  文件中 需要在哪种标识后面添加废弃代码(按需修改)",
    "m_file_mark_arr":".h   .m  文件中 需要在哪种标识后面添加废弃代码(按需修改)",
    "output_path":"垃圾OC类文件输出目录"
  }
}
2.运行
occhaos

occhaos's People

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.