[bug] macOS app doesn't build with Xcode 27: "could not find native static library PermissionFlowShimFFI
Author: mangit955Created Sep 25, 2026Updated Sep 25, 2026
Labelsbug
the bug
On a Mac with Xcode 27, the desktop app doesn't build. bun run build:tauri:dev (and dev:tauri) stops with:
error: could not find native static library `PermissionFlowShimFFI`, perhaps an -L flag is missing?
error: could not compile `permission-flow` (lib) due to 1 previous errorCause, as far as I can tell:
- Xcode 27's SwiftPM puts its build output in a new folder:
PermissionFlowShimFFI/out/Products/Release/instead ofPermissionFlowShimFFI/arm64-apple-macosx/release/. swift-rs1.0.7 (pinned insrc-tauri/Cargo.lock) only looks in the old folder, so the permission-flow Swift library is never found and linking fails.swift-rs1.0.8 adds support for the Xcode 27 layout.- Once that's fixed, a second problem appears:
copy_permission_flow_bundleinsrc-tauri/build.rsalso only searches<arch>-apple-macosx/*/forPermissionFlow_PermissionFlow.bundle(the permission screens' translations). On Xcode 27 it can't find it, so:- debug builds put in an empty placeholder and warn
PermissionFlow_PermissionFlow.bundle missing ... staging empty stub. permission-flow then falls back toBundle.main, and the permission screens lose their translations. - release builds stop with an error (
... swift-rs didn't emit it).
- debug builds put in an empty placeholder and warn
CI runs older Xcode (macos-14/15), so it hasn't hit this yet.
expected The app builds on Xcode 27 and ships the real translation bundle.
actual The build fails at link time. With only the swift-rs fix, debug builds ship an empty translation bundle and release builds fail.
steps to reproduce
- Use a Mac with Xcode 27 (
xcodebuild -version→ Xcode 27.0). cd apps/screenpipe-app-tauri && bun run build:tauri:dev- The build fails with
could not find native static library PermissionFlowShimFFI.
system info
- os: macOS 27.0
- Xcode 27.0 (27A266a), Swift 6.4
- screenpipe version: 2.7.71 (built from source,
main)
Source: screenpipe/screenpipe