Coder Social home page Coder Social logo

slt's Introduction

静态库操作工具

限制:

  • 输入文件必须包含相同的架构,比如都只包含armv7, armv7s, i386。否则无法合并。
  • 当前版本仅仅是简单的将同名文件(.o文件)去重,如果两个静态库中包含的文件版本不同,则可能可能在运行时出现问题。

安装

  1. 通过go get
    • 首先确保正确安装了golang 参考
    • 正确设置环境变量 $GOROOT $GOPATH,并已将 $GOPATH/bin 放入 $PATH 中。
    • 通过 go get -u github.com/Leon1108/slt 即可安装、更新了。
  2. 直接获取对应平台的可执行文件
    • TODO

用法:

slt [-mpdhove] <input_files>

-m: 工作模式
    merge       合并多架构静态库。[默认]
    exclude     排除指定文件。
-p: Pattern 用于指定需要排除哪些文件。当工作模式为exclude时,该参数有效。
-d: 打印调试信息
-h: 打印帮助信息
-o <output>: 指定输出文件名称,默认会在执行命令的目录生成一个名为'slt-output.a'的文件
-v: 打印版本信息
-e: 指定Xcode安装位置,默认为'/Applications/Xcode.app/'

例如:

  1. $slt -h
  2. $slt -v
  3. $slt xxx.a yyy.a
  4. $slt -o all_in_one.a xxx.a yyy.a
  5. $slt -d -o all_in_one.a xxx.a yyy.a
  6. $slt -m exclude -p 'Pods.*-dummy.o' -o excluded.a xxx.a

slt's People

Contributors

leon14214 avatar johnnyshi1225 avatar

Watchers

James Cloos 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.