1.安装theos
https://www.jianshu.com/p/db3e99a7717e
2.makefile文件配置
export THEOS_DEVICE_IP = 192.168.1.105 # 手机ip
export THEOS=/opt/theos
ARCHS = armv7 arm64
TARGET = iphone:latest:8.0
INSTALL_TARGET_PROCESSES = SpringBoard
include $(THEOS)/makefiles/common.mk
TWEAK_NAME = IOSREProject
IOSREProject_FILES = Tweak.x
IOSREProject_PRIVATE_FRAMEWORK = BaseBoard
IOSREProject_CFLAGS = -fobjc-arc
include $(THEOS_MAKE_PATH)/tweak.mk
After-install::
install.exec "killall -9 SpringBoard"
3.Tweak.x文件配置
%hook SBFLockScreenDateSubtitleView
-(void)setString:(id)arg1
{
%orig(@"hello, 祝你有好的一天");
}
%end