<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: UBro-dev</title>
    <description>The latest articles on DEV Community by UBro-dev (@ubrodev).</description>
    <link>https://dev.to/ubrodev</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4226941%2Fe9835cfe-c03b-472a-8ada-22fb44b7ae53.png</url>
      <title>DEV Community: UBro-dev</title>
      <link>https://dev.to/ubrodev</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ubrodev"/>
    <language>en</language>
    <item>
      <title>Three Tauri bugs I found by not trusting a green build</title>
      <dc:creator>UBro-dev</dc:creator>
      <pubDate>Sun, 08 Nov 2026 22:02:57 +0000</pubDate>
      <link>https://dev.to/ubrodev/three-tauri-bugs-i-found-by-not-trusting-a-green-build-1fc9</link>
      <guid>https://dev.to/ubrodev/three-tauri-bugs-i-found-by-not-trusting-a-green-build-1fc9</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;TL;DR&lt;/strong&gt; 🧵 Last week I wrote about one Tauri bug. Someone in the comments told me to check the updater manifest, not just the files it points at. That one nudge turned one bug into three, and my pipeline into something I actually trust. Short version: a green build tells you the toolchain didn't crash. That's it. That's the whole lesson.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;I maintain &lt;a href="https://github.com/UBro-dev/stacker-pulse" rel="noopener noreferrer"&gt;StackerPulse&lt;/a&gt;, a small Rust + Tauri v2 desktop app for Stacker News. If you build for macOS universal, &lt;a href="https://github.com/tauri-apps/tauri/issues/16460" rel="noopener noreferrer"&gt;bug 1&lt;/a&gt; will find you eventually.&lt;/p&gt;

&lt;h2&gt;
  
  
  🍎 Bug 1: every binary but the main one gets left behind
&lt;/h2&gt;

&lt;p&gt;My app crate has two binaries: the app, and a little secret scanner I ship as a CLI.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight toml"&gt;&lt;code&gt;&lt;span class="k"&gt;[[&lt;/span&gt;&lt;span class="n"&gt;bin&lt;/span&gt;&lt;span class="k"&gt;]]&lt;/span&gt;
&lt;span class="n"&gt;name&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s"&gt;"stacker-pulse"&lt;/span&gt;
&lt;span class="n"&gt;path&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s"&gt;"src/main.rs"&lt;/span&gt;

&lt;span class="k"&gt;[[&lt;/span&gt;&lt;span class="n"&gt;bin&lt;/span&gt;&lt;span class="k"&gt;]]&lt;/span&gt;
&lt;span class="n"&gt;name&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s"&gt;"seedscan-cli"&lt;/span&gt;
&lt;span class="n"&gt;path&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s"&gt;"src/seedscan_cli.rs"&lt;/span&gt;
&lt;span class="n"&gt;required-features&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s"&gt;"cli"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Windows: fine. Linux: fine. macOS universal: the build dies at the bundling step.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Built application at: .../target/universal-apple-darwin/release/stacker-pulse
failed to bundle project: Failed to copy binary from
".../target/universal-apple-darwin/release/seedscan-cli": does not exist
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Here's my favourite part. Both halves are doing exactly what they should.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Where&lt;/th&gt;
&lt;th&gt;What it does&lt;/th&gt;
&lt;th&gt;Correct?&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;desktop.rs&lt;/code&gt;, universal branch&lt;/td&gt;
&lt;td&gt;one &lt;code&gt;lipo -create&lt;/code&gt;, main binary only&lt;/td&gt;
&lt;td&gt;✅ yes, in isolation&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;get_binaries()&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;returns every &lt;code&gt;[[bin]]&lt;/code&gt; with &lt;code&gt;required-features&lt;/code&gt; on&lt;/td&gt;
&lt;td&gt;✅ yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;the bundler&lt;/td&gt;
&lt;td&gt;copies every binary from that list&lt;/td&gt;
&lt;td&gt;✅ yes&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Three correct behaviours, one broken build. The second binary is compiled for both architectures, never merged into the universal output directory, and then politely requested by name.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;💡 Bug density tip: if Windows and Linux are green, this class of bug can hide in your repo for a long time. I only found it because I ship on three platforms from one workflow.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  🎭 Bug 2: the CI that claps with no hands
&lt;/h2&gt;

&lt;p&gt;So I fixed the workflow. Ran it again. &lt;strong&gt;Green.&lt;/strong&gt; 🟢&lt;/p&gt;

&lt;p&gt;The draft release had CLI archives, checksums, provenance attestations... and not a single installer. Not one. Zero.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;tauri-action&lt;/code&gt; skips the upload when the release id it got is empty, and exits 0 while doing it. No warning, no red step, no "hey, I uploaded nothing". Just a green check and an empty release.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;with&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;tagName&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;${{ github.ref_name }}&lt;/span&gt;
  &lt;span class="na"&gt;releaseName&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;StackerPulse&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;${{&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;github.ref_name&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;}}"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Two lines. Not a Tauri bug in the strict sense, more of a missing alarm on a door that opens silently.&lt;/p&gt;

&lt;h2&gt;
  
  
  🕵️ Bug 3: ten platforms in, two MSIs out
&lt;/h2&gt;

&lt;p&gt;This is the one I'm actually proud of, and it exists because someone in the comments &lt;a href="https://dev.to/ubrodev/i-found-a-bug-in-tauris-universal-macos-builds-and-my-ci-lied-to-me-31f1"&gt;told me to check the manifest&lt;/a&gt;. So I did. I compared &lt;code&gt;latest.json&lt;/code&gt; against the files that were really attached.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="nl"&gt;"platforms"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"windows-x86_64"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt;      &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"url"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"..._x64_en-US.msi"&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"windows-x86_64-msi"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"url"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"..._x64_ru-RU.msi"&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"windows-x86_64-nsis"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"url"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"..._x64-setup.exe"&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Notice the problem? I build two MSIs, one per language:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="nl"&gt;"windows"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"wix"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"language"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"en-US"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"ru-RU"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"nsis"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"languages"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"English"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Russian"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Two MSIs walk in. The manifest has one key per architecture. One MSI walks out. The Russian build overwrote the English one, and &lt;code&gt;windows-x86_64&lt;/code&gt; still points at English, so now two keys for the same architecture disagree about which language they serve.&lt;/p&gt;

&lt;p&gt;Every installer is present. Every one is signed. Every asset check passes. And a Russian user on an MSI install gets an English app after the update, and probably never mentions it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Nothing is broken and the result is still wrong.&lt;/strong&gt; That's the failure mode that actually kills you.&lt;/p&gt;

&lt;h2&gt;
  
  
  🧟 What the three have in common
&lt;/h2&gt;

&lt;p&gt;Each component does something reasonable alone. &lt;code&gt;lipo&lt;/code&gt; merges a binary. The action uploads assets. The bundler writes one entry per artifact type.&lt;/p&gt;

&lt;p&gt;The bug lives in the handover. In what one side assumes the other produced.&lt;/p&gt;

&lt;p&gt;Which means "did the build succeed" is not a useful question. It's an answer to a question nobody asked.&lt;/p&gt;

&lt;h2&gt;
  
  
  🔍 Seven lines that replaced my optimism
&lt;/h2&gt;

&lt;p&gt;None of these checks looks at build status.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# 1. the installers exist&lt;/span&gt;
gh release view &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="nv"&gt;$TAG&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; &lt;span class="nt"&gt;--json&lt;/span&gt; assets &lt;span class="nt"&gt;-q&lt;/span&gt; &lt;span class="s1"&gt;'.assets[].name'&lt;/span&gt; | &lt;span class="nb"&gt;sort&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; actual.txt
diff &lt;span class="nt"&gt;-u&lt;/span&gt; expected.txt actual.txt

&lt;span class="c"&gt;# 2. the manifest points at them&lt;/span&gt;
&lt;span class="k"&gt;for &lt;/span&gt;p &lt;span class="k"&gt;in &lt;/span&gt;windows-x86_64 linux-x86_64 darwin-aarch64 darwin-x86_64&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="k"&gt;do
  &lt;/span&gt;jq &lt;span class="nt"&gt;-e&lt;/span&gt; &lt;span class="nt"&gt;--arg&lt;/span&gt; p &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="nv"&gt;$p&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; &lt;span class="s1"&gt;'.platforms[$p].url and .platforms[$p].signature'&lt;/span&gt; latest.json
&lt;span class="k"&gt;done&lt;/span&gt;

&lt;span class="c"&gt;# 3. and the manifest version matches the tag&lt;/span&gt;
jq &lt;span class="nt"&gt;-r&lt;/span&gt; &lt;span class="s1"&gt;'.version'&lt;/span&gt; latest.json | &lt;span class="nb"&gt;grep&lt;/span&gt; &lt;span class="nt"&gt;-qx&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="k"&gt;${&lt;/span&gt;&lt;span class="nv"&gt;TAG&lt;/span&gt;&lt;span class="p"&gt;#v&lt;/span&gt;&lt;span class="k"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The real version in the repo also checks that every download link is pinned to the tag. Draft releases hand out &lt;code&gt;untagged-...&lt;/code&gt; URLs that die the instant you publish.&lt;/p&gt;

&lt;h2&gt;
  
  
  🛠 The fix, and two ways I almost made it worse
&lt;/h2&gt;

&lt;p&gt;A patch for bug 1 appeared before I wrote mine. Reviewing it turned up something neither of us thought about:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight rust"&gt;&lt;code&gt;&lt;span class="c1"&gt;// desktop.rs&lt;/span&gt;
&lt;span class="k"&gt;let&lt;/span&gt; &lt;span class="k"&gt;mut&lt;/span&gt; &lt;span class="n"&gt;features&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;config_features&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="n"&gt;features&lt;/span&gt;&lt;span class="nf"&gt;.extend&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;options&lt;/span&gt;&lt;span class="py"&gt;.features&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Cargo gets &lt;strong&gt;both&lt;/strong&gt; feature lists. &lt;code&gt;get_binaries()&lt;/code&gt; filters on &lt;strong&gt;one&lt;/strong&gt;. Enable a binary through &lt;code&gt;build.features&lt;/code&gt; in &lt;code&gt;tauri.conf.json&lt;/code&gt; and the merged set is smaller than what the bundler will ask for. Their patch fixes my repro and misses the next one. Classic.&lt;/p&gt;

&lt;p&gt;And my own near-miss: my first plan was to rename the main binary inside the &lt;code&gt;lipo&lt;/code&gt; loop, to honour &lt;code&gt;main_binary_name&lt;/code&gt;. Then I read &lt;code&gt;rename_app()&lt;/code&gt; and discovered it already renames it &lt;em&gt;after&lt;/em&gt; &lt;code&gt;lipo&lt;/code&gt;. My version would have made &lt;code&gt;fs::rename&lt;/code&gt; hunt for a file that no longer existed. Ten minutes of reading the function I was about to duplicate. One broken release avoided.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/tauri-apps/tauri/pull/16488" rel="noopener noreferrer"&gt;tauri#16488&lt;/a&gt; merges every binary from &lt;code&gt;get_binaries()&lt;/code&gt;, config features merged in first, so both sides finally see the same list.&lt;/p&gt;

&lt;h2&gt;
  
  
  📊 How I verified it
&lt;/h2&gt;

&lt;p&gt;I don't own a Mac. So the check runs in CI, on a real runner, against two refs of &lt;code&gt;tauri-cli&lt;/code&gt;:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;code&gt;tauri-cli&lt;/code&gt;&lt;/th&gt;
&lt;th&gt;result&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;refs/heads/dev&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;build fails, exit 1 🔴&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;refs/pull/16488/head&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;build succeeds, &lt;code&gt;seedscan-cli&lt;/code&gt; inside &lt;code&gt;Contents/MacOS/&lt;/code&gt; 🟢&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;A build that "passes" proves nothing. A build that fails without the patch and passes with it proves the patch does what it claims. Everything else is a wish.&lt;/p&gt;

&lt;h2&gt;
  
  
  🎁 What I'd pass on
&lt;/h2&gt;

&lt;p&gt;A green build tells you the toolchain didn't crash. It says nothing about whether the artifact is correct, complete, or the thing you meant to ship.&lt;/p&gt;

&lt;p&gt;The cheap version of catching that is seven lines of &lt;code&gt;jq&lt;/code&gt; and &lt;code&gt;gh release view&lt;/code&gt;. The expensive version is finding out from a user whose update quietly installed the wrong language, three months later, assuming they bother to tell you at all.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;&lt;a href="https://github.com/UBro-dev/stacker-pulse" rel="noopener noreferrer"&gt;StackerPulse&lt;/a&gt; is a small Rust and Tauri app for Stacker News, MIT licensed. If you ship Tauri and build macOS universal, go count your binaries.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>opensource</category>
      <category>rust</category>
      <category>tauri</category>
      <category>debugging</category>
    </item>
    <item>
      <title>I found a bug in Tauri's universal macOS builds (and my CI lied to me)</title>
      <dc:creator>UBro-dev</dc:creator>
      <pubDate>Wed, 04 Nov 2026 18:30:57 +0000</pubDate>
      <link>https://dev.to/ubrodev/i-found-a-bug-in-tauris-universal-macos-builds-and-my-ci-lied-to-me-31f1</link>
      <guid>https://dev.to/ubrodev/i-found-a-bug-in-tauris-universal-macos-builds-and-my-ci-lied-to-me-31f1</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;TL;DR&lt;/strong&gt; 🧵 A Tauri app with two &lt;code&gt;[[bin]]&lt;/code&gt; targets can't be bundled as a universal macOS app: only the main binary gets merged with &lt;code&gt;lipo&lt;/code&gt;. And &lt;code&gt;tauri-action&lt;/code&gt; will happily finish green after uploading nothing. Below: why it happens, workarounds for both, and the issue I filed.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;I maintain &lt;a href="https://github.com/UBro-dev/stacker-pulse" rel="noopener noreferrer"&gt;StackerPulse&lt;/a&gt;, a small open-source desktop app built with &lt;strong&gt;Rust&lt;/strong&gt; and &lt;strong&gt;Tauri v2&lt;/strong&gt;. It ships for Windows, Linux and macOS from a single GitHub Actions workflow.&lt;/p&gt;

&lt;p&gt;Getting the macOS release out took two surprises:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;Symptom&lt;/th&gt;
&lt;th&gt;Cause&lt;/th&gt;
&lt;th&gt;Fix&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;🍎 &lt;strong&gt;#1&lt;/strong&gt;
&lt;/td&gt;
&lt;td&gt;&lt;code&gt;Failed to copy binary … does not exist&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;universal build merges only the main binary&lt;/td&gt;
&lt;td&gt;make extra bins opt-in with &lt;code&gt;required-features&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;✅ &lt;strong&gt;#2&lt;/strong&gt;
&lt;/td&gt;
&lt;td&gt;CI is green, release has no installers&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;tauri-action&lt;/code&gt; silently skips uploads without a release id&lt;/td&gt;
&lt;td&gt;pass &lt;code&gt;tagName&lt;/code&gt;, verify the assets&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;




&lt;h2&gt;
  
  
  🍎 Surprise 1: "file does not exist" in a universal build
&lt;/h2&gt;

&lt;p&gt;The app crate has two binaries: the app itself and a small command-line scanner.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight toml"&gt;&lt;code&gt;&lt;span class="k"&gt;[[&lt;/span&gt;&lt;span class="n"&gt;bin&lt;/span&gt;&lt;span class="k"&gt;]]&lt;/span&gt;
&lt;span class="n"&gt;name&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s"&gt;"stacker-pulse"&lt;/span&gt;
&lt;span class="n"&gt;path&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s"&gt;"src/main.rs"&lt;/span&gt;

&lt;span class="k"&gt;[[&lt;/span&gt;&lt;span class="n"&gt;bin&lt;/span&gt;&lt;span class="k"&gt;]]&lt;/span&gt;
&lt;span class="n"&gt;name&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s"&gt;"seedscan-cli"&lt;/span&gt;
&lt;span class="n"&gt;path&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s"&gt;"src/seedscan_cli.rs"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Windows and Linux bundled fine. The universal macOS build (&lt;code&gt;--target universal-apple-darwin&lt;/code&gt;) compiled for &lt;strong&gt;both architectures&lt;/strong&gt; and then died at bundling:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Built application at: .../target/universal-apple-darwin/release/stacker-pulse
failed to bundle project: Failed to copy binary from
".../target/universal-apple-darwin/release/seedscan-cli": does not exist
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  🔍 What's going on
&lt;/h3&gt;

&lt;p&gt;I read the tauri-cli source (2.12.4). Two things don't line up:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;🧩 In &lt;code&gt;crates/tauri-cli/src/interface/rust/desktop.rs&lt;/code&gt;, the universal branch of &lt;code&gt;build()&lt;/code&gt; builds both architectures, then runs &lt;strong&gt;one&lt;/strong&gt; &lt;code&gt;lipo -create&lt;/code&gt; command, for the &lt;strong&gt;main binary only&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;📦 The bundler takes its list from &lt;code&gt;get_binaries()&lt;/code&gt; in &lt;code&gt;crates/tauri-cli/src/interface/rust.rs&lt;/code&gt;, which returns &lt;strong&gt;every&lt;/strong&gt; &lt;code&gt;[[bin]]&lt;/code&gt; whose &lt;code&gt;required-features&lt;/code&gt; are enabled.&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;The extra binary is compiled for each architecture but never merged into &lt;code&gt;target/universal-apple-darwin/release/&lt;/code&gt;, so the bundler goes looking for a file that was never created.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  🛠️ Workaround
&lt;/h3&gt;

&lt;p&gt;&lt;code&gt;get_binaries()&lt;/code&gt; skips binaries whose &lt;code&gt;required-features&lt;/code&gt; aren't enabled. Make the extra binary opt-in:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight toml"&gt;&lt;code&gt;&lt;span class="k"&gt;[[&lt;/span&gt;&lt;span class="n"&gt;bin&lt;/span&gt;&lt;span class="k"&gt;]]&lt;/span&gt;
&lt;span class="n"&gt;name&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s"&gt;"seedscan-cli"&lt;/span&gt;
&lt;span class="n"&gt;path&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s"&gt;"src/seedscan_cli.rs"&lt;/span&gt;
&lt;span class="n"&gt;required-features&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s"&gt;"cli"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;

&lt;span class="k"&gt;[&lt;/span&gt;&lt;span class="n"&gt;features&lt;/span&gt;&lt;span class="k"&gt;]&lt;/span&gt;
&lt;span class="n"&gt;cli&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;tauri build&lt;/code&gt; enables no features, so the app bundles cleanly on every OS. The CLI is built separately, once per architecture on macOS, and merged by hand:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;cargo build &lt;span class="nt"&gt;--release&lt;/span&gt; &lt;span class="nt"&gt;--features&lt;/span&gt; cli &lt;span class="nt"&gt;--bin&lt;/span&gt; seedscan-cli &lt;span class="nt"&gt;--target&lt;/span&gt; aarch64-apple-darwin
cargo build &lt;span class="nt"&gt;--release&lt;/span&gt; &lt;span class="nt"&gt;--features&lt;/span&gt; cli &lt;span class="nt"&gt;--bin&lt;/span&gt; seedscan-cli &lt;span class="nt"&gt;--target&lt;/span&gt; x86_64-apple-darwin
lipo &lt;span class="nt"&gt;-create&lt;/span&gt; &lt;span class="nt"&gt;-output&lt;/span&gt; seedscan-cli &lt;span class="se"&gt;\&lt;/span&gt;
  target/aarch64-apple-darwin/release/seedscan-cli &lt;span class="se"&gt;\&lt;/span&gt;
  target/x86_64-apple-darwin/release/seedscan-cli
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;⚠️ Pass &lt;code&gt;--features cli&lt;/code&gt; to &lt;code&gt;cargo test&lt;/code&gt; and &lt;code&gt;cargo clippy&lt;/code&gt; too, or the CLI's tests &lt;strong&gt;silently stop running&lt;/strong&gt;. This workaround relies on tauri-cli respecting &lt;code&gt;required-features&lt;/code&gt;, which is reliable since &lt;strong&gt;2.11.3&lt;/strong&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  📮 Reported upstream
&lt;/h3&gt;

&lt;p&gt;There was no existing report for this case: older issues are about &lt;code&gt;externalBin&lt;/code&gt; sidecars, a different mechanism. So I filed &lt;strong&gt;&lt;a href="https://github.com/tauri-apps/tauri/issues/16460" rel="noopener noreferrer"&gt;tauri-apps/tauri#16460&lt;/a&gt;&lt;/strong&gt; with a minimal reproduction and a suggested fix: run &lt;code&gt;lipo&lt;/code&gt; for every binary returned by &lt;code&gt;get_binaries()&lt;/code&gt;, not just the main one.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;At the time of writing, the issue is open and waiting for triage.&lt;/em&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  ✅ Surprise 2: green CI, empty release
&lt;/h2&gt;

&lt;p&gt;With bundling fixed, the release workflow finished &lt;strong&gt;green&lt;/strong&gt;. The draft release had the CLI archives and checksums, and &lt;strong&gt;no installers at all&lt;/strong&gt;. 🙃&lt;/p&gt;

&lt;p&gt;The workflow creates a draft release first and passes its id to &lt;code&gt;tauri-apps/tauri-action&lt;/code&gt;. My step that looked up the id returned an empty string. Given no release id and no tag name, tauri-action builds everything, logs this, and &lt;strong&gt;exits successfully&lt;/strong&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;No releaseId or tagName provided, skipping all uploads...
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  🛠️ Two fixes
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;1. Give tauri-action the tag as a fallback&lt;/strong&gt;, so it can find the draft on its own, and make the id lookup fail loudly:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;uses&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;tauri-apps/tauri-action@&amp;lt;pinned-sha&amp;gt;&lt;/span&gt;
  &lt;span class="na"&gt;with&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;releaseId&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;${{ needs.create-release.outputs.release_id }}&lt;/span&gt;
    &lt;span class="na"&gt;tagName&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;${{ github.ref_name }}&lt;/span&gt;
    &lt;span class="na"&gt;releaseDraft&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;2. Check the result, not the exit code:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;The installers really are on the draft&lt;/span&gt;
  &lt;span class="na"&gt;shell&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;bash&lt;/span&gt;
  &lt;span class="na"&gt;env&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;GH_TOKEN&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;${{ github.token }}&lt;/span&gt;
  &lt;span class="na"&gt;run&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="pi"&gt;|&lt;/span&gt;
    &lt;span class="s"&gt;case "$RUNNER_OS" in&lt;/span&gt;
      &lt;span class="s"&gt;Windows) want='\.msi$' ;;&lt;/span&gt;
      &lt;span class="s"&gt;macOS)   want='\.dmg$' ;;&lt;/span&gt;
      &lt;span class="s"&gt;*)       want='\.AppImage$' ;;&lt;/span&gt;
    &lt;span class="s"&gt;esac&lt;/span&gt;
    &lt;span class="s"&gt;gh release view "$TAG" --json assets --jq '.assets[].name' &amp;gt; assets.txt&lt;/span&gt;
    &lt;span class="s"&gt;grep -Eq "$want" assets.txt || { echo "::error::No installer was attached"; exit 1; }&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The next run attached every installer, and a missing one now turns the build &lt;strong&gt;red&lt;/strong&gt; instead of quietly shipping an empty release. 🎉&lt;/p&gt;




&lt;h2&gt;
  
  
  💡 Takeaways
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;📖 &lt;strong&gt;When a tool fails strangely, read its source.&lt;/strong&gt; The answer to surprise 1 was in about ten lines of tauri-cli.&lt;/li&gt;
&lt;li&gt;🟢 &lt;strong&gt;A green check means "the steps ran", not "the job is done".&lt;/strong&gt; Add a step that verifies what you actually care about.&lt;/li&gt;
&lt;li&gt;📮 &lt;strong&gt;Report it upstream, even with a workaround in hand.&lt;/strong&gt; A minimal reproduction and a pointer to the code takes an hour and saves the next person a day.&lt;/li&gt;
&lt;/ol&gt;




&lt;p&gt;The project, the workflow and the full changelog are on &lt;strong&gt;&lt;a href="https://github.com/UBro-dev/stacker-pulse" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt;&lt;/strong&gt;. If you've hit something similar with Tauri or &lt;code&gt;tauri-action&lt;/code&gt;, I'd love to hear about it in the comments 👇&lt;/p&gt;

</description>
      <category>rust</category>
      <category>programming</category>
      <category>opensource</category>
      <category>github</category>
    </item>
  </channel>
</rss>
