飘云 发表于 2014-9-22 12:46:51

iOSOpenDev越狱开发直接编译安装到真机+错误解决方案

macOS10.12.x之后:
先安装:
brew tap theseal/ssh-askpass
brew install ssh-askpass
In order to use ssh-askpass you have to link the binary to where the ssh-agent
is looking.

Pre 10.11:

    sudo ln -s /usr/local/bin/ssh-askpass /usr/libexec/ssh-askpass

10.11+:

    If you have XQuartz (http://www.xquartz.org/) or are willing to get it:

      Make sure that the latest XQuartz is installed. (eg. brew cask install xquartz)

      sudo ln -s /usr/local/bin/ssh-askpass /usr/X11R6/bin/ssh-askpass

    Else:

      Disable SIP (rootless) http://www.imore.com/el-capitan- ... s-keep-malware-away

      sudo mkdir -p /usr/X11R6/bin
      sudo ln -s /usr/local/bin/ssh-askpass /usr/X11R6/bin/ssh-askpass

      Enable SIP (rootless) http://www.imore.com/el-capitan- ... s-keep-malware-away
编译安装到真机步骤:

此时点击菜单 Product - Build For - Profiling 试图安装到设备去,通常情况会报错:
Failed to create directory /var/root/iOSOpenDevPackages on device 你的iOS设备IP地址

错误解决方法:
1.先在终端输入:iosod sshkey -h 192.168.23.71(换成你的iOS设备IP地址)
然后按照提示创建key




2.上面完成后,再次打开终端,这次是连接到设备:






此时飞向光明之巅了:



湘灵鼓瑟 发表于 2014-9-23 20:49:56

路过,不错,收藏了!
页: [1]
查看完整版本: iOSOpenDev越狱开发直接编译安装到真机+错误解决方案