一、去掉系统通知气泡调试
1、ps -A | grep SpringBoard

2、scp -P 12345 root@localhost:/System/Library/CoreServices/SpringBoard.app/SpringBoard ~/Desktop/。拷贝到桌面
3、otool -l ~/Desktop/SpringBoard | grep cry。没有加密字段,没有加密

4、直接class-dump。class-dump -H ~/Desktop/SpringBoard -o ~/Desktop/headers


5、cycript -p SpringBoard
6、@import com.Imefuture.dyz

7、#0x138a01160.view.recursiveDescription() .toString () 循环打印一下层级关系

8、#0x138d6d440.hidden = 1


SBIconParallaxBadgeView

9、headers拖入Sublime Text,command + shift + f,@interface加类名SBIconParallaxBadgeView搜索

父类当中有个_text

10、choose(SBIconParallaxBadgeView)
11、UIApp.keyWindow .recursiveDescription() .toString () 循环打印一下层级关系

12、#0x138dad2f0->_text

13、并不会渲染上来
cy# #0x138dad2f0->_text = @"12"
@"12"
cy# #0x138dad2f0->_text
@"12"
二、Monkey写Tweak
1、创建一个Logos Tweak项目

2、把BadegeTweak.xm文件的Type选成Objective-C++ Preprocessed Source,然后重新打开

3、写入如下Logos

4、包的一些配置

5、bundleid的配置,依附的程序的bundleid


6、编译的一些配置
注意点:一定要写以前访问过的,它是没法自动保存的哦,记住哦!!
MonkeyDevkillProcessOnInstall 杀掉那个进程,默认是SpringBoard

如果配置了MonkeyDevDeviceIP和MonkeyDevDevicePort这两个环境变量,上面的(TARGETS、Build Settings、MonkeyDevDeviceIP和MonkeyDevDevicePort)就可以不需要了,但是我这里如果添加环境变量,有点问题

7、Build 一下
遇到问题一
An empty identity is not valid when signing a binary for the product type 'Dynamic Library'.
遇到问题二
Building for iOS, but linking in .tbd file (/opt/theos/vendor/lib/CydiaSubstrate.framework/CydiaSubstrate.tbd) built for iOS Simulator, file '/opt/theos/vendor/lib/CydiaSubstrate.framework/CydiaSubstrate.tbd' for architecture arm64
7.1、重启springboard
7.2、Cydia中出现如下插件

7.3、气泡消失
