Menu

1 / 3

I found a bug in Tauri's universal macOS builds (and my CI lied to me)

DEV Community: rustยทUBro-devยท11 days ago
#eEg76GzS
#devtorust#devto#dev#tauri#release
Reading 0:00
15s threshold

TL;DR ๐Ÿงต A Tauri app with two [[bin]] targets can't be bundled as a universal macOS app: only the main binary gets merged with lipo . And tauri-action will happily finish green after uploading nothing. Below: why it happens, workarounds for both, and the issue I filed.

I maintain StackerPulse , a small open-source desktop app built with Rust and Tauri v2 . It ships for Windows, Linux and macOS from a single GitHub Actions workflow.

Getting the macOS release out took two surprises:

Symptom Cause Fix

๐ŸŽ #1 Failed to copy binary โ€ฆ does not exist universal build merges only the main binary make extra bins opt-in with required-features

โœ… #2 CI is green, release has no installers tauri-action silently skips uploads without a release id pass tagName , verify the assets

๐ŸŽ Surprise 1: "file does not exist" in a universal build

The app crate has two binaries: the app itself and a small command-line scanner.

[[ bin ]] name = "stacker-pulse" path = "src/main.rs"

[[ bin ]] name = "seedscan-cli" path =โ€ฆ

Continue reading โ€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.