SKDebugTool
在 iOS 开发中,可以查看网络请求、内存和 fps,并且可以实时查看沙盒文件并使用 AirDrop 发送到电脑
集成方式
使用 Cocoapods 集成
pod 'SKDebugTool' ,:configurations => ['Debug']
使用方式:
#import <SKDebugTool/SKDebugTool.h>
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
........
#if DEBUG
[SKDebugTool shareInstance].specialHeaders = @[@"requet specialHeaders"]; // optional
// eg: rquest url is https:localhostL:18080?requestParame=xxxxxxx?xxxxxxx
// so you can add header to specialHeaders just like [SKDebugTool shareInstance].specialHeaders = @[@"requestHeaders"];
[[SKDebugTool shareInstance] enableDebugMode];
#endif
........
}
使用过程中遇到问题请及时 issue,后续会为该工具添加新功能
项目原地址:
https://github.com/JxbSir/JxbDebugTool
https://github.com/music4kid/AirSandbox
后续需要添加的功能有:
接口过滤功能
接口的搜索功能
闪退的定位以及闪退日志的记录
待优化:
- 悬浮球拖拽在旋转VC的时候 位置错误