#7292·screenpipe

[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 error

Cause, as far as I can tell:

  1. Xcode 27's SwiftPM puts its build output in a new folder: PermissionFlowShimFFI/out/Products/Release/ instead of PermissionFlowShimFFI/arm64-apple-macosx/release/.
  2. swift-rs 1.0.7 (pinned in src-tauri/Cargo.lock) only looks in the old folder, so the permission-flow Swift library is never found and linking fails. swift-rs 1.0.8 adds support for the Xcode 27 layout.
  3. Once that's fixed, a second problem appears: copy_permission_flow_bundle in src-tauri/build.rs also only searches <arch>-apple-macosx/*/ for PermissionFlow_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 to Bundle.main, and the permission screens lose their translations.
    • release builds stop with an error (... swift-rs didn't emit it).

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

  1. Use a Mac with Xcode 27 (xcodebuild -version → Xcode 27.0).
  2. cd apps/screenpipe-app-tauri && bun run build:tauri:dev
  3. 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)