1 Star 0 Fork 2

Kyle / WeChatPlugin-MacOS

forked from yohom / WeChatPlugin-MacOS 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Install.md 1.92 KB
一键复制 编辑 原始数据 按行查看 历史
TKkk 提交于 2018-04-07 17:40 . Update ==> 自动回复新增延迟回复

Install

第一次安装需要输入密码,仅是为了获取写入微信文件夹的权限

0. 懒癌版安装&升级(需要git支持)

打开应用程序-实用工具-Terminal(终端),执行以下命令并根据提示输入密码即可。

cd ~/Downloads && rm -rf WeChatPlugin-MacOS && git clone https://github.com/TKkk-iOSer/WeChatPlugin-MacOS.git --depth=1 && ./WeChatPlugin-MacOS/Other/Install.sh

1. 普通安装

  • 点击clone or download按钮下载 WeChatPlugin 并解压

clone or download

  • 应用程序-实用工具中打开Terminal(终端)

terminal

  • 拖动解压后Install.sh 文件到终端中回车即可.

terminal

2. 若想修改源码&重编译(需要安装Cocoapods)

  • 先更改微信的 owner 以获取写入微信文件夹的权限,否则会出现类似Permission denied的错误。

sudo chown -R $(whoami) /Applications/WeChat.app

Permission denied.png

  • 下载 WeChatPlugin, 进行Pod install

  • 用Xcode打开,编辑 Scheme,在 Debug 模式下启动 WeChat。 edit scheme

  • 之后 Run (command + R)即可启动微信,此时插件注入完成。

  • 若 Error,提示找不到 Framework,先进行 Build。

  • 若Error, 需要配置环境,请参考我的博客

卸载

打开Terminal(终端),拖动解压后Uninstall.sh 文件到 Terminal 回车即可。

1
https://gitee.com/kylelkh/WeChatPlugin-MacOS.git
git@gitee.com:kylelkh/WeChatPlugin-MacOS.git
kylelkh
WeChatPlugin-MacOS
WeChatPlugin-MacOS
master

搜索帮助