Repository navigation
Colyseus Native SDK - Static Library v0.18.12
Pre-built Binaries
Download the appropriate archive for your platform:
| Platform | Architecture | File |
|---|---|---|
| macOS | arm64 (Apple Silicon) | colyseus-macos-arm64.tar.gz |
| macOS | x86_64 (Intel) | colyseus-macos-x86_64.tar.gz |
| Linux | x86_64 | colyseus-linux-x86_64.tar.gz |
| Linux | arm64 | colyseus-linux-arm64.tar.gz |
| Windows | x86_64 | colyseus-windows-x86_64.zip |
| iOS | arm64 | colyseus-ios-arm64.tar.gz |
| WebAssembly | wasm32 | colyseus-wasm32.tar.gz |
| Apple (SwiftPM) | macOS, iOS, tvOS | Colyseus.xcframework.zip |
Swift
.package(url: "https://github.com/colyseus/colyseus-swift", from: "0.18.12")That package resolves Colyseus.xcframework.zip below. Declare the
binary target yourself only to reach the C API directly:
.binaryTarget(
name: "CColyseus",
url: "https://github.com/colyseus/native-sdk/releases/download/v0.18.12/Colyseus.xcframework.zip",
checksum: "25c8c59bf0c062cd5c8a0fac76e3f6ab0108fe1b4100de8aefc7b409948bb958"
)Usage
Extract the archive and link the library:
// Include headers
#include <colyseus/client.h>
#include <colyseus/room.h>
// Link: -L/path/to/lib -lcolyseus
// Include: -I/path/to/includeZig Build System
exe.addObjectFile(.{ .cwd_relative = "path/to/lib/libcolyseus.a" });
exe.addIncludePath(.{ .cwd_relative = "path/to/include" });What's Changed
Full Changelog: v0.18.10...v0.18.12