Build EpixNet for iOS¶
This guide shows how to build and run the EpixNet iOS app from source. It is aimed at people comfortable with Xcode. There is no release download for iOS: the releases page has no iOS package, and mobile store releases are still in preparation. If you just want to try EpixNet, the desktop guides are much easier.
The iOS app runs the same EpixNet node as the desktop, compiled into the app and wrapped in a native shell that shows .epix xites in a web view. Tor and I2P are built in. Everything runs in one process, with no external server.
What you need¶
- A Mac. The iOS app cannot be built on Windows or Linux.
- Xcode. Current store submissions need Xcode 26 or newer.
- Rust and the Apple command line tools.
- An iOS 17 or later simulator or device. Running on a physical device also needs a signing team configured in Xcode.
1. Install Xcode¶
Install Xcode from the Mac App Store, open it once, and let it finish setting up. This also gives you the iOS build tools.
Make sure the active developer directory points at Xcode and not at the Command Line Tools:
2. Install the desktop build tools¶
Follow steps 1 and 2 of the macOS guide to get Rust, the Apple command line tools and the protobuf compiler.
3. Add the iOS build targets to Rust¶
The first target is for devices and the second is for the simulator.
4. Get the code¶
5. Stage the wallet build¶
The app bundles the Epix Wallet from the shells/wallet-ext directory, and the build checks that directory before it compiles anything. It must hold a wallet build that includes the mobile assets (mobile.html, mobile-register.html, mobileProvider.bundle.js and epix-mobile-build.json).
The wallet source lives in the separate EpixZone/epix-wallet repository. shells/wallet-ext.rev pins the wallet commit that this EpixNet checkout expects, and building the desktop launcher downloads that pinned build into shells/wallet-ext:
Check the staged copy with the same script the Xcode build runs:
It prints PASS when the mobile assets are present, or one FAIL line for each problem.
Debug and Release builds
A Debug build accepts a local wallet build. A Release build additionally requires the pinned, unmodified wallet source and published policy page URLs, and the check fails if they are missing.
6. Build and run the app¶
Open ios/EpixNet.xcodeproj in Xcode, pick a simulator, and press Run.
Or build from the command line:
xcodebuild -project ios/EpixNet.xcodeproj -scheme EpixNet \
-destination 'platform=iOS Simulator,name=iPhone 17 Pro' build
The first build compiles the whole Rust workspace for iOS, which takes a few minutes. Afterwards only changed crates rebuild.
How the build works¶
You do not run Cargo by hand. The Xcode target's first build phase runs ios/build-rust.sh, which does three things:
- Checks the staged wallet, as in step 5.
- Builds the
epix-fficrate as a static library, in release mode, for the active platform's target (aarch64-apple-ios-simfor the simulator,aarch64-apple-iosfor a device). - Generates the Swift bindings into
ios/Generated/with UniFFI.
The Rust build the script runs is:
cargo build -p epix-ffi --release --target "$TRIPLE" \
--locked --no-default-features --features tor,i2p-embedded,bridges,mesh,local-discovery
The app target then compiles the generated Swift file alongside the shell source and links libepix_ffi.a. ios/Generated/ is build output and is not committed.
To run the script outside Xcode, set the platform yourself:
A few details are worth knowing:
- Release mode is required. Debug builds of the deep asynchronous call chains (Tor, HTTP) overflow iOS thread stacks.
- No BitTorrent. The iOS build leaves out the
bittorrentfeature, both the media engine and tracker discovery. The Android build includes it. - Offline transports are included but off.
meshandlocal-discoveryare the transports that work with no internet at all (a Reticulum mesh, or peer discovery over LAN broadcast). Both ship disabled: themeshandlocal_discoveryconfig keys default to off, and with them off the node spawns no task and binds no socket for either. LAN discovery additionally needsNSLocalNetworkUsageDescriptioninInfo.plist, which is already present. Without it iOS drops the broadcasts without an error.
Differences from desktop¶
| Area | iOS behavior |
|---|---|
| Ports | The app binds the UI to 127.0.0.1:43210 and the peer file server to 26553, not the desktop defaults. The iOS simulator shares the Mac's network, so the desktop defaults would collide with a desktop node on the same machine. |
| Background | Foreground only. iOS suspends the process shortly after the app goes to the background, so the node syncs and seeds only while the app is open. |
| Wallet | The web view cannot run browser extensions, so the Epix Wallet runs as a web app that the node serves inside the app. Tap the Epix button to open it. |
| Browser extensions | Xite-published browser extensions are a desktop and Android feature. |
| Secure origins | Each xite gets its own HTTPS .epix origin through an in-process TLS proxy. The app validates those connections against a per-install certificate authority inside its own browser views. It does not install a system root certificate. |
| Routing | Tor is enabled by the app. Routing general web requests through Tor is on by default and can be changed in the app. After changing it, relaunch the app to guarantee every existing connection uses the new route. |
The browser chrome matches the Android app: an address bar that accepts .epix names, epix1... addresses and URLs, with the Epix button beside it. A tap opens the wallet and a long-press opens the Tor and I2P panel. epix:// links open in the app.
Still under test
Full wallet signing, permission denial and physical-device testing remain release gates for the iOS app. Simulator onboarding alone does not establish those flows. Do not treat a local build as a finished product, and read Privacy and routing before you rely on a route.
If something goes wrong¶
FAIL: missing wallet assetduring the build- The wallet is not staged, or the staged copy has no mobile assets. Repeat step 5.
error: unsupported PLATFORM_NAME- The build script supports the iOS simulator and iOS devices only. Pick an iOS simulator or device as the run destination.
cargoorrustupnot found during the Xcode build- The script looks for Rust in
$HOME/.cargo/bin. Install Rust with rustup as described in the macOS guide. - Xcode builds with the wrong tools
- Run the
xcode-select --switchcommand from step 1 so the active developer directory is Xcode itself. - A device build fails at signing
- Device builds need a signing team. Select your team for the EpixNet target in Xcode's Signing & Capabilities tab.
More information¶
ios/README.mdin the node repository has the current build notes and known limitations.shells/README.mdhas contributor notes for the Android and iOS shells.- Contributing to EpixNet covers the development workflow.