Previously developed debugging frameworks were somewhat scattered, so the goal was to create a universal framework that could combine different debugging tools through a plugin structure. This tool is designed for efficient problem solving rather than being comprehensive. Therefore, features that might affect App Store submission, such as private iOS functions and disabled interfaces, are not provided by default.
The previous name was ZXKitSwift
, inspired by the novel "Zhu Xian". Due to maintenance costs for the domain and changes in the novel's ending, the name has been changed, dependencies have been removed, and updates have been made. This library is now released as DDKitSwift.
The following plugins are built-in and ready to use:
- 🐛 Log logging
- 📶 Network ping detection
- 📱 FPS detection
- 📂 Sandbox file browsing
- 📋 UserDefault data management
- 🌐 Network request interception and viewing
- Use CocoaPods to select the functionalities you need. You can combine them as needed.
# Required
pod 'DDKitSwift'
# Network monitoring (optional)
pod 'DDKitSwift_Netfox'
# FPS detection (optional)
pod 'DDKitSwift_FPS'
# Ping detection (optional)
pod 'DDKitSwift_Ping'
# File browsing (optional)
pod 'DDKitSwift_FileBrowser'
# UserDefault management (optional)
pod 'DDKitSwift_UserDefaultManager'
- Import the header files
import DDKitSwift
import DDKitSwift_Netfox
import DDKitSwift_FPS
import DDKitSwift_Ping
import DDKitSwift_FileBrowser
import DDKitSwift_UserDefaultManager
- Register the necessary components in the
AppDelegate
startup function
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
DDKitSwift.regist(plugin: DDKitSwift_Netfox())
DDKitSwift.regist(plugin: DDKitSwift_FPS())
DDKitSwift.regist(plugin: DDKitSwift_Ping())
DDKitSwift.regist(plugin: DDKitSwift_FileBrowser())
DDKitSwift.regist(plugin: DDKitSwift_UserDefaultManager())
return true
}
- Show the tools list
DDKitSwift.show()
- Hide the tools popup
DDKitSwift.hide()
- Close the tools popup
DDKitSwift.close()
Advanced operations provide a way to integrate personalized plugins. The process remains simple, with the additional step of self-registration compared to direct default integration.
DDKitSwift
comes with a set of pre-installed default functions and supports custom plugin integration. Simply import the corresponding library and register it in the AppDelegate
startup function.
If you need to develop custom plugins, implement the DDKitSwiftPluginProtocol
. Then call the DDKitSwift.regist(plugin: )
function to automatically load and display the plugin.