Bagel

a little native network debugging tool for iOS

Github星跟蹤圖

Bagel

Bagel

Bagel 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.

Preview

Bagel

Installation

Install Mac App

  • Clone the repo.
  • Install pods.
  • Build and archive the project.

Install iOS Client

CocoaPods

pod 'Bagel', '~>  1.3.2'
Carthage
github "yagiz/Bagel" "1.3.2"
Accio
.package(url: "https://github.com/yagiz/Bagel.git", .upToNextMajor(from: "1.3.2")),

Usage

Most 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 Bagel

By 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.

License

Apache

主要指標

概覽
名稱與所有者yagiz/Bagel
主編程語言Swift
編程語言Ruby (語言數: 6)
平台
許可證Apache License 2.0
所有者活动
創建於2017-05-12 11:22:19
推送於2024-08-20 10:54:06
最后一次提交2020-10-25 00:33:32
發布數3
最新版本名稱1.4.0 (發布於 )
第一版名稱1.3.1 (發布於 )
用户参与
星數4.4k
關注者數48
派生數325
提交數170
已啟用問題?
問題數57
打開的問題數27
拉請求數22
打開的拉請求數8
關閉的拉請求數6
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?