Skip to content

Commit

Permalink
default ip localhost
Browse files Browse the repository at this point in the history
  • Loading branch information
AloneMonkey committed Jun 28, 2017
1 parent 788466b commit 0bae5d9
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 2 deletions.
50 changes: 49 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,50 @@
# MonkeyDev
MonkeyDev

iOSOpenDev修改版。

* 安装更简单
* 支持最新版theos

### 安装

```
git clone https://github.com/AloneMonkey/MonkeyDev.git
cd MonkeyDev/bin
sudo ./md-install
```

### 使用
新建项目,在iOS模板最下面可以找到`MonkeyDev`模板,暂时只支持`CaptainHook Tweak``Logos Tweak`

`Logos Tweak`会自动链接`CydiaSubstrate`,不再需要手动链接。

`Commonand + B`编译,不安装,设置`MonkeyDevInstallOnAnyBuild``YES`,会自动打包安装到设备。

`Command + Shift + i`编译安装,但是这种方式是`Release`模式,看不到log输出。

在编译设置中可以自定义设备ip和ssh的端口:

![image](http://7xtdl4.com1.z0.glb.clouddn.com/script_1498636483087.png)

不设置的话,ip默认为`localhost`,port默认为`2222`

当然你也可以在`~/.zshrc`或其它profile里面设置`MonkeyDevDevice``MonkeyDevPort`

查看log的会可以使用`idevicesyslog`查看,毕竟带颜色。。。。

### 注意

* 本工具配合最新[theos](https://github.com/theos/theos/)使用。
* 安装 brew install ldid
* 设备免密码登录

```
ssh-keygen -t rsa -P ''
ssh-copy-id -i /Users/用户名/.ssh/id_rsa root@IP
```

### 卸载

```
sudo ./md-uninstall
```
2 changes: 1 addition & 1 deletion bin/md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export activeActionArg

export MonkeyDevPath="/opt/MonkeyDev"
#默认设备ip
export DefaultDevice="127.0.0.1"
export DefaultDevice="localhost"
#默认端口号
export DefaultPort="2222"

Expand Down

0 comments on commit 0bae5d9

Please sign in to comment.