theos安装

1.指定Theos的安装路径

Theos是放在github上的,使用git命令来clone比较方便。虽然可以放在任何目录下,但是官方建议大家放在 /opt/下 。打开Mac的终端,输入命令行:

export THEOS=/opt/theos

2.上一步,我们已经配置了一个环境变量,现在我们将theos下载到指定的目录,输入命令行:

git clone --recursive https://github.com/theos/theos.git $THEOS

如果有报错没有权限使用下面这句

sudo Git clone --recursive https://github.com/theos/theos.git /opt/theos

然后把/opt/theos的权限改成你自己:

sudo chown $(id -u):$(id -g) /opt/theos

最后把theos的执行路径加入到环境变量中,在~/.bash_profile中加上:

export THEOS="/opt/theos"

在任意目录下(不能是/opt/theos下,否则将创建不成功),输入如下命令创建Theos项目:

/opt/theos/bin/nic.pl NIC 2.0 - New Instance Creator

可以看到这里共有14种模板可供选择,这里我们选择tweak -> 输入Package Name(deb包的名字,类似于bundle identifier)-> tweak的名字 -> 输入”MobileSubstrate Bundel filter“,也就是tweak作用对象的bundle identifier,如:com.apple.springboard -> Done完成。


配置ldid

下载地址https://github.com/downloads/rpetrich/ldid/ldid.zip



参考文章:https://blog.csdn.net/u010545480/article/details/74103748

https://blog.csdn.net/u010545480/article/details/74103748

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容