macOS: fix runtime crash on macos26 "type code 'q', but found 'Q'"

Fixes #4299.
This commit is contained in:
Robert Wallis
2025-07-20 01:04:04 -07:00
committed by Kirill Chibisov
parent 911fad0af0
commit cc43ea13d9
2 changed files with 5 additions and 1 deletions

View File

@@ -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"

View File

@@ -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.