You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In `crates/perry/src/commands/compile.rs` at the `find_native_library` match (around line 1504), watchOS targets fall through to the `_ => "macos"` default:
So when `--target watchos-simulator` is used with a `perry.nativeLibrary` package, Perry picks up the `macos` entry (`native/macos/`) and tries to build it for the watch-sim target — which fails with unrelated errors like `rfd` not implementing `FileSaveDialogImpl`.
Repro
With the current bloom-jump + bloom-engine tree:
```
cd /path/to/jump
perry compile --target watchos-simulator --features watchos-game-loop src/main.ts -o BloomJumpWatch
```
Fails with `error: could not compile `rfd` ... Failed to build native library crate for bloom/core: native/macos/` — wrong crate.
Once this lands, bloom's `package.json` needs a `perry.nativeLibrary.targets.watchos` entry pointing at a new `native/watchos/` crate. That's tracked separately — this issue is only about Perry picking the correct key.
Quick sanity check of other target-string match tables in compile.rs shows no other missing watchos entries — SDK name selection, triple selection, is_watchos flag (line 5937), and the metal_sources match (line 3384) all have parallel watchos arms.
Activity
fix: find_native_library target_key honors watchos (v0.5.115) (#107)
proggeramlug commentedon Apr 23, 2026
The fix is already present on
main— commitc2ba250added thewatchosarm to thefind_native_librarytarget_key match (now at line 2088):Quick sanity check of other target-string match tables in
compile.rsshows no other missingwatchosentries — SDK name selection, triple selection,is_watchosflag (line 5937), and the metal_sources match (line 3384) all have parallelwatchosarms.Closing as completed.
Generated by Claude Code