From cc43ea13d97d736fc12427d03c426dedaf736c1c Mon Sep 17 00:00:00 2001 From: Robert Wallis Date: Sun, 20 Jul 2025 01:04:04 -0700 Subject: [PATCH] macOS: fix runtime crash on macos26 "type code 'q', but found 'Q'" Fixes #4299. --- Cargo.toml | 2 +- src/changelog/unreleased.md | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index b914b5e41..582237a53 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -119,7 +119,7 @@ ndk = { version = "0.9.0", default-features = false } [target.'cfg(any(target_os = "ios", target_os = "macos"))'.dependencies] block2 = "0.5.1" core-foundation = "0.9.3" -objc2 = "0.5.2" +objc2 = { version = "0.5.2", features = ["relax-sign-encoding"] } [target.'cfg(target_os = "macos")'.dependencies] core-graphics = "0.23.1" diff --git a/src/changelog/unreleased.md b/src/changelog/unreleased.md index f3a0f6d2c..a7ec5f0ac 100644 --- a/src/changelog/unreleased.md +++ b/src/changelog/unreleased.md @@ -39,3 +39,7 @@ The migration guide could reference other migration examples in the current changelog entry. ## Unreleased + +### Fixed + +- On macOS, fix crash on macOS 26 by using objc2's `relax-sign-encoding` feature.