使用Theos创建、编译、安装tweak
1.使用theos目录下的nic.pl创建工程
$ theos/bin/nic.pl
选择 [10.] iphone/tweak ,按照提示填入内容:
Project Name :工程名
Package Name :包名,类似于bundle identifier,命名规则一般倒着写,如com.xxhook.firsttweak
Author/Maintainer Name:作者名
MobileSubstrate Bundle filte :tweak作用的对象的bundle identifier,如com.apple.springboard
List of applications to terminate upon installation :tweak安装完成后需要重启的应用,以进程名表示,如SpringBoard
LongdeMac-mini:~ long$ theos/bin/nic.pl
NIC 2.0 - New Instance Creator
------------------------------
[1.] iphone/activator_event
[2.] iphone/application_modern
[3.] iphone/application_swift
[4.] iphone/flipswitch_switch
[5.] iphone/framework
[6.] iphone/library
[7.] iphone/preference_bundle_modern
[8.] iphone/tool
[9.] iphone/tool_swift
[10.] iphone/tweak
[11.] iphone/xpc_service
Choose a Templ