在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:yagiz/Bagel开源软件地址:https://github.com/yagiz/Bagel开源编程语言:Swift 55.8%开源软件介绍:BagelBagel is a little native iOS network debugger. It's not a proxy debugger so you don't have to mess around with certificates, proxy settings etc. As long as your iOS devices and your Mac are in the same network, you can view the network traffic of your apps seperated by the devices or simulators. PreviewInstallationInstall Mac App
Install iOS ClientCocoaPods
Carthagegithub "yagiz/Bagel" "1.4.0" Accio.package(url: "https://github.com/yagiz/Bagel.git", .upToNextMajor(from: "1.4.0")), UsageMost basic usage is to start Bagel iOS before any network operation. //import Bagel
Bagel.start() Since Bagel exposes every request info to the public it would be better if you disable it for the store versions. You can use the below snippet to do it: //import Bagel
#if DEBUG
Bagel.start()
#endif Configuring BagelBy default, Bagel gets your project name and device information. Desktop client uses these informations to separate projects and devices. You can configure these if you wish: let bagelConfig = BagelConfiguration()
bagelConfig.project.projectName = "Custom Project Name"
bagelConfig.device.deviceName = "Custom Device Name"
bagelConfig.device.deviceDescription = "Custom Device Description"
Bagel.start(bagelConfig) Bagel framework communicates with the desktop client by using Bonjour protocol. You can also configure these Netservice parameters. Default values are: let bagelConfig = BagelConfiguration()
bagelConfig.netservicePort = 43434
bagelConfig.netserviceDomain = ""
bagelConfig.netserviceType = "_Bagel._tcp"
bagelConfig.netserviceName = ""
Bagel.start(bagelConfig) If you change Netservice parameters in your app, you should also change them on desktop client. LicenseApache |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论