Add to your Package.swift:
dependencies: [
.package(url: "https://github.com/Olib-AI/ConnectionPool.git", from: "1.6.0")
]Then add the dependency to your target:
targets: [
.target(
name: "YourApp",
dependencies: [
.product(name: "ConnectionPool", package: "ConnectionPool")
]
)
]If using XcodeGen, add to your project.yml:
packages:
ConnectionPool:
path: LocalPackages/ConnectionPool
targets:
YourApp:
dependencies:
- package: ConnectionPool
product: ConnectionPoolThen regenerate: xcodegen generate
- iOS 17.0+
- macOS 14.0+
- Swift 6.0+
- Xcode 16+
MultipeerConnectivity requires the Multicast Networking entitlement on iOS 14+ and the Local Network usage description in your Info.plist:
<key>NSLocalNetworkUsageDescription</key>
<string>ConnectionPool uses the local network to discover and communicate with nearby devices.</string>
<key>NSBonjourServices</key>
<array>
<string>_stealthos-pool._tcp</string>
<string>_stealthos-rly._tcp</string>
</array>- Quick Start for hosting, joining, and messaging
- Configuration for logger and storage injection