DebugNetworkLib
示例
要运行示例项目,请先克隆仓库,然后在示例目录中运行 pod install
。
需求
NodeJS
下载服务器
https://github.com/padgithub/ServerDebugNetwork
brew install node
cd Server
npm install
运行服务器
./run-server-debug.sh
最终跳转到 服务器
在模拟器中打开
command + control + z
安装
DebugNetworkLib 可通过 CocoaPods 获得。要安装它,只需将以下行添加到您的 Podfile 中
pod 'DebugNetworkLib'
并在您的 AppDelegate 添加
#if DEBUG
import DebugNetworkLib
#endif
#if DEBUG
DNL.sharedInstance().start()
#endif
作者
padgithub, [email protected]
许可协议
DebugNetworkLib 在 MIT 许可协议下可用。更多信息请参阅 LICENSE 文件。