集成facebook redex到mac上来压缩apk的体积

本文介绍了如何在Mac上安装和使用Facebook的Redex工具来压缩APK文件。首先,通过Homebrew安装必要依赖,如autoconf、automake等。然后,克隆Redex的GitHub仓库并初始化子模块。最后,执行autoreconf、configure、make及sudo make install步骤,并解决zipalign找不到的问题,成功压缩APK。
摘要由CSDN通过智能技术生成

Facebook   redex 安装使用

 1. xcode-select --install







原来要安装home-brew 

安装Homebrew 


执行这条ruby命令即可

2.   ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"





安装失败



成功安装  上次安装失败是因为我把输入安装的mac密码  当成了让我设置密码了  所以导致验证一直失败


3.   brew install autoconf automake libtool python3


yangyangdeMacBook-Pro:~ yangyang$ brew install autoconf automake libtool python3

==> Downloading https://homebrew.bintray.com/bottles/autoconf-2.69.el_capitan.bo

######################################################################## 100.0%

==> Pouring autoconf-2.69.el_capitan.bottle.4.tar.gz

==> Caveats

Emacs Lisp files have been installed to:

  /usr/local/share/emacs/site-lisp/autoconf

==> Summary

��  /usr/local/Cellar/autoconf/2.69: 70 files, 3.0M

==> Downloading https://homebrew.bintray.com/bottles/automake-1.15.el_capitan.bo

######################################################################## 100.0%

==> Pouring automake-1.15.el_capitan.bottle.2.tar.gz

��  /usr/local/Cellar/automake/1.15: 130 files, 2.9M

==> Downloading https://homebrew.bintray.com/bottles/libtool-2.4.6.el_capitan.bo

######################################################################## 100.0%

==> Pouring libtool-2.4.6.el_capitan.bottle.tar.gz

==> Caveats

In order to prevent conflicts with Apple's own libtool we have prepended a "g"

so, you have instead: glibtool and glibtoolize.

==> Summary

��  /usr/local/Cellar/libtool/2.4.6: 70 files, 3.7M

==> Installing dependencies for python3: readline, sqlite, gdbm, openssl,

==> Installing python3 dependency: readline

==> Downloading https://homebrew.bintray.com/bottles/readline-6.3.8.el_capitan.b

######################################################################## 100.0%

==> Pouring readline-6.3.8.el_capitan.bottle.tar.gz

==> Caveats

This formula is keg-only, which means it was not symlinked into /usr/local.


OS X provides the BSD libedit library, which shadows libreadline.

In order to prevent conflicts when programs look for libreadline we are

defaulting this GNU Readline installation to keg-only.



Generally there are no consequences of this for you. If you build your

own software and it requires this formula, you'll need to add to your

build variables:


    LDFLAGS:  -L/usr/local/opt/readline/lib

    CPPFLAGS: -I/usr/local/opt/readline/include


==> Summary

��  /usr/local/Cellar/readline/6.3.8: 46 files, 2.0M

==> Installing python3 dependency: sqlite

==> Downloading https://homebrew.bintray.com/bottles/sqlite-3.12.2.el_capitan.bo

######################################################################## 100.0%

==> Pouring sqlite-3.12.2.el_capitan.bottle.tar.gz

==> Caveats

This formula is keg-only, which means it was not symlinked into /usr/local.


OS X provides an older sqlite3.


Generally there are no consequences of this for you. If you build your

own software and it requires this formula, you'll need to add to your

build variables:


    LDFLAGS:  -L/usr/local/opt/sqlite/lib

    CPPFLAGS: -I/usr/local/opt/sqlite/include


==> Summary

��  /usr/local/Cellar/sqlite/3.12.2: 10 files, 2.8M

==> Installing python3 dependency: gdbm

==> Downloading https://homebrew.bintray.com/bottles/gdbm-1.11.el_capitan.bottle

######################################################################## 100.0%

==> Pouring gdbm-1.11.el_capitan.bottle.2.tar.gz

��  /usr/local/Cellar/gdbm/1.11: 18 files, 486.7K

==> Installing python3 dependency: openssl

==> Downloading https://homebrew.bintray.com/bottles/openssl-1.0.2g.el_capitan.b

######################################################################## 100.0%

==> Pouring openssl-1.0.2g.el_capitan.bottle.tar.gz



  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值