FWDebug
中文
一款支持 iOS11 及以上版本的 iOS 调试库,无需添加任何代码即可便利地进行 iOS 开发和测试。
截图
移动端
浏览器
教程
在实际机器或模拟器内摇动两次,在5秒内将出现调试菜单。功能如下
- FLEX调试工具(摇动打开)
- PC网页调试服务器,可以查看手机网络请求,NSLog,打开URL,实时截图等。("Web Server"入口)
- 检查Swift对象功能("App Config"默认启用)
- 测量视图距离(将工具栏切换到"尺子"模式)
- 循环引用检测和分析(在对象视图页面点击搜索)
- 查看类和协定的头文件(在类视图页面点击"运行时头文件")
- 显示FPS、内存、CPU占用率(摇动打开)
- 手机、App信息查看,模拟功能("Device Info"入口)
- App崩溃日志记录和查看("Crash Log"入口)
- App崩溃日志报告至邮箱和服务器(配置代码崩溃报告器)
- 文件日志的记录和查看("Custom Log"入口)
- App文件管理器("浏览目录"入口)
- 文档文件http、webdav服务器("Web Server"入口,网页文件可以放在Documents/website)
- 实际机器NSLog显示("System Log"入口,"App Config"可以配置以过滤系统日志)
- 生成dylib动态库并注入其他App("Dylib"目录,需要手机越狱)
- App加密工具("App Config"可以配置以打开)
- CLLocationManager虚拟位置("Fake Location"入口)
- 模拟器虚拟远程推送发送和接收功能("Fake Notification"入口)
- APNs远程推送发送功能("Fake Notification"入口 "APNS Client"配置)
- 查看启动时间、控制器加载和网络请求时间("Time Profiler"入口或点击帧率图标快速查看当前控制器时间)
- WKWebView请求包捕获功能(开启"App Config"后,仅检查"网络历史记录")
- WKWebView自动注入vConsole功能(开启"App Config"后,仅开启WKWebView)
- 网站静态web服务器("Web Server"入口,网页文件可以放在Documents/website)
- WKWebView清理缓存("App Config"入口)
审查
对于关注机架审计问题的人来说,特别解释
由于这个调试库调用私有API,审核将不会通过,所以请在提交至AppStore时移除。
在添加pod时仅设置: configurations => ['Debug']
,仅对Debug模式有效。
安装
推荐使用CocoaPods进行依赖管理和环境配置的自动化管理。
CocoaPods
调试库支持调试和发布环境,推荐开启调试模式。Podfile 示例
platform :ios, '11.0'
use_frameworks!
target 'Example' do
pod 'FWDebug', :configurations => ['Debug']
end
变更日志
版本 5.2.0
* Added WKWebView injection custom Javascript debugging script function, such as (Chii)
* Added PC Web to view mobile phone clipboard and Javascript script functions, which can be switched off
版本 5.1.0
* Added PC Web real-time view mobile phone screenshot feature
* Add systemLog and rename customLog to meet custom log requirements
版本 5.0.1
* Fixed the crash problem when the Swift project started occasionally
* Upgrade vConsole to version 3.15.0
版本 5.0.0
* Added Reflex plugin to inspect Swift objects
* Added switch Reflex switch setting, enabled by default
版本 4.1.0
* Upgrade FLEX to version 5.22.10
版本 4.0.0
* Added PC Web debugging server
* Added Web server port and path configuration
* Added crash report to email or server
* Added WKWebView clearing cache
* Upgrade FLEX to the latest version
* Compatible with iOS 16
版本 3.1.0
* Upgrade FLEX to version 4.7.0
版本 3.0.0
* Added view distance measurement tool
版本 2.1.0
* Added the function of registering and removing custom debug entry
* Added record and view file log function
* Modify the gesture of 5-finger tap twice to 3-finger tap twice
* Open the filter system log switch by default
* Upgrade FLEX to version 4.6.1
版本 2.0.0
* Compatible with iOS 15 and Xcode 13
* At least compatible with iOS 11
* Refactored application Bundle information simulation function
版本 1.10.1
* Added the ability to simulate the executable name and version number of the application
版本 1.10.0
* Fix iOS15 crash problem
* Upgrade FLEX to version 4.5.0
版本 1.9.2
* Added built-in static web server function
版本 1.9.1
* Refactor the project structure and introduce the tripartite library without modification
* Sync Vendor latest trunk code
* Optimize the NSLog log function of the filtering system
版本 1.9.0
* Added WKWebView request packet capture function
* WKWebView automatically injects the vConsole debugging function
版本 1.8.5
* Updated FLEX to version 4.4.0
版本 1.8.4
* Updated FLEX to version 4.2.2
版本 1.8.3
* Added 5 finger double click to switch debugger function
版本 1.8.2
* Compatible with Xcode 12
版本 1.8.1
* Optimize the time view function, add clear button
版本 1.8.0
* Increase the launch time, controller loading and network request time viewing function
* Add long press debug button to jump URL function
* Optimized memory determination method
版本 1.7.4
* Updated FLEX to version 4.1.1
* Minimum compatible with iOS9
* Compatible with dark mode
版本 1.7.3
* Sync Vendor latest trunk code
版本 1.7.2
* Sync Vendor latest trunk code
版本 1.7.1
* Sync Vendor latest trunk code
* Add a switch that can filter the System Log
版本 1.7.0
* Sync the latest trunk code such as FLEX 3
* Compatible with Xcode 11
版本 1.6.0
* Added simulator virtual remote push send and receive function
* Added APNs remote push sending function
1.5.3 版本
* Sync Vendor latest trunk code
1.5.2 版本
* Support InjectionIII
1.5.1 版本
* Sync Vendor latest trunk code
* Example project Swift 4 compatible
1.5.0 版本
* Add CLLocationManager virtual positioning and movement
1.4.2 版本
* Increase NSLog display limit
* Example project Swift mixed debugging
1.4.1 版本
* Optimized circular reference detection
1.4.0 版本
* Add circular reference detection for classes and objects
* Add circular reference detection for current ViewController
1.3.1 版本
* Example project iPhoneX adaptation
* Repair Documents file http server
1.3.0 版本
* Remove some tools, keep the core functions
* Reconstruction, optimization code
* Add App Encryption Tool
1.2.1 版本
* Sync FLEX latest trunk code
* Add screenshots, update instructions
1.2.0 版本
* Repair iOS10 real machine NSLog display
* Add mobile app list to view
* Add JSPatch dynamically modify the application
* Add dylib projects and inject existing App tools
1.1.0 版本
* Adjust the project structure
* Update FLEX to 2.4.0 version
* Add crash log debugging
* Add Documents file http, webdav server
* Add header files to view
* Add FPS display
* Add App, Device Information
1.0.0 版本
* Add FLEX debugging
供应商
该调试库使用第三方库,感谢所有第三方库作者。以下列出