Repository navigation
Releases
MXray v1.1.8
Automated release built from Xray-core v26.11.9+548f0049.
Consume with:
.package(url: "https://github.com/themoein100/MXray.git", from: "1.1.8")LibXray.xcframework.zip SwiftPM checksum:
74dd90329c73f3ac462ffaf13e6274edc2790540db985951c1316ac9077a4e0f
MXray v1.1.7
Automated release built from Xray-core v26.10.17+71ab73f0.
Consume with:
.package(url: "https://github.com/themoein100/MXray.git", from: "1.1.7")LibXray.xcframework.zip SwiftPM checksum:
b693754f569ade79376f4b61ce8f4687de59acc32c205f2204faca88edf7def9
MXray v1.1.6
Automated release built from Xray-core v26.10.17+a6ad9e48.
Consume with:
.package(url: "https://github.com/themoein100/MXray.git", from: "1.1.6")LibXray.xcframework.zip SwiftPM checksum:
0496b257d5071b85882051e2f9a479f5655339b36c9986736ef53bb1784e85b3
MXray v1.1.5
Automated release built from Xray-core v26.9.9+36b83185.
Consume with:
.package(url: "https://github.com/themoein100/MXray.git", from: "1.1.5")LibXray.xcframework.zip SwiftPM checksum:
9f74cdeea6a44c480e61f848858a94c3a9b74f182e768a114eda3f06d2b3d0db
MXray v1.1.4
Automated release built from Xray-core v26.9.9+ec689a58.
Consume with:
.package(url: "https://github.com/themoein100/MXray.git", from: "1.1.4")LibXray.xcframework.zip SwiftPM checksum:
d96fa56d091a2fb03b068c8018a427ce0808910d485923e809a31668b3327750
MXray v1.1.3
Automated release built from Xray-core v26.9.9+40686e11.
Consume with:
.package(url: "https://github.com/themoein100/MXray.git", from: "1.1.3")LibXray.xcframework.zip SwiftPM checksum:
74641fe90572f5b0f8cbf71b7fa47d5fa0793defc84987c9284fa6e951b22382
MXray v1.1.2
Automated release built from Xray-core v26.9.9+ded19c7b.
Consume with:
.package(url: "https://github.com/themoein100/MXray.git", from: "1.1.2")LibXray.xcframework.zip SwiftPM checksum:
7ea2a65b89bf5987c63f5206273216d3436bf38921a307ddfa0afe6ce31cdb8b
MXray v1.1.1
Fixes the macOS slice shipped in v1.1.0.
- macOS: v1.1.0's framework was built without a macOS deployment target, so its cgo objects required macOS 27 (the version of the Mac that built it) and it would not load on older Macs. The slice is rebuilt for macOS 13.
- Platform minimum: raised from macOS 12 to macOS 13, the oldest version supported by Go 1.27, which the core is built with. iOS stays at 15.
- The iOS, Simulator and Mac Catalyst slices are the same as in v1.1.0. The Swift API is unchanged.
All v1.1.0 changes are included: Xray-core v26.9.9 and the Network Extension memory fixes. See v1.1.0.
.package(url: "https://github.com/themoein100/MXray.git", from: "1.1.1")LibXray.xcframework.zip SwiftPM checksum: c136ac39c38acb49b83ada5a86087969ab3faa054de7c6eb01366f6e8e409fd1
MXray v1.1.0
Use v1.1.1 instead. The macOS slice in this release requires macOS 27.
LibXray rebuilt on Xray-core v26.9.9, with the Network Extension memory fixes from themoein100/Xray-core included for the first time.
Core
- Xray-core v26.7.x → v26.9.9, built with Go 1.27.
- Hysteria 2 port hopping follows the core's new
udphopUDP mask. Share links withouthop-intervaldefault to 30 s, since the core no longer accepts a hop mask without an interval. proxySettingson outbounds was removed upstream; usestreamSettings.sockopt.dialerProxy.
Network Extension memory
Under heavy traffic the extension could reach the ~50 MB jetsam limit and be killed without a stop reason. This release includes the fixes:
- UDP DNS sessions end after 5 s idle, instead of lasting the whole connection idle timeout.
- UDP flows are closed when the stack stops, so they no longer outlive a core restart.
- gVisor TCP buffers are capped at 256 KiB per connection (down from 6–8 MiB).
- XHTTP HTTP/2 receive windows are capped at 512 KiB per stream and 4 MiB per connection. This fix is rewritten for Go 1.27; the previous approach no longer had any effect.
- Darwin TUN writes retry briefly on
ENOBUFSinstead of dropping the packet.
Compatibility
No Swift API changes. Existing code builds without modification.
.package(url: "https://github.com/themoein100/MXray.git", from: "1.1.0")LibXray.xcframework.zip SwiftPM checksum: 3555e4ef033c36b9789465dd6636f6d21c1a44b095f7e8a77d174122d4e0370d
v1.0.2
Report dead packet paths instead of dying silently.
Both directions of the packet bridge are framed as [4-byte AF][IP packet] over a SOCK_STREAM socketpair, which has no delimiter to resynchronise on. A truncated frame or a hard socket error used to end delivery for good — the reader thread exited with no log, no callback and no restart, while Xray stayed up and the session stayed .connected. From the outside that looks like a video frozen on its first frame, not a tunnel that stopped.
DownlinkPumpnow reports why it stopped: end-of-stream, framing desync (with address family and offset), or errno.- The uplink reports a write that gave up mid-buffer, which leaves a partial frame for Xray's reader.
- Both surface through
XrayBridge.onPacketPathFailure. XrayPacketTunnelProviderends the session by default and exposespacketPathDidFail(reason:)to override.
Binary target is unchanged from v1.0.1 (LibXray built from Xray-core v1.260327.0).