theOS环境搭建

http://joeyio.com/ios/2014/01/01/make-a-mobile-substrate-tweak-using-theos/
~/Doucment>: cd mytweaks
mytweaks>:   ~/JailBreak/theos/bin/nic.pl //用theOS生成原始插件模板

//修改tweak.xm、makefile等
export THEOS_DEVICE_IP = 手机IP地址    
makefile所在路径>:  make package install    //默认密码是alpine

也可以用iTools、iFile、iFunBox等安装于手机上。
把手机连接到电脑上,打开Xcode,在Organizer里的Console里能看到程序中使用NSLog打印的信息。



错误“Command /bin/sh failed with exit code 1. ”的解决方法可以是添加export THEOS=/opt/theos, 或者在target -> Build Phases
 -> Run Script 中改/opt/iOSOpenDev/bin/iosod --xcbp 为 /opt/iOSOpenDev/bin/iosod --xcbp-logos等。
原文地址:https://www.cnblogs.com/edgarli/p/theOS.html