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 GitHub
parent e7a6034b55
commit 5904529ba1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View file

@ -54,7 +54,7 @@ ndk = { version = "0.9.0", features = ["rwh_06"], default-features = false }
# Apple dependencies.
block2 = "0.6.1"
dispatch2 = { version = "0.3.0", default-features = false, features = ["std", "objc2"] }
objc2 = "0.6.1"
objc2 = { version = "0.6.1", features = ["relax-sign-encoding"] }
objc2-app-kit = { version = "0.3.1", default-features = false }
objc2-core-foundation = { version = "0.3.1", default-features = false }
objc2-core-graphics = { version = "0.3.1", default-features = false }

View file

@ -205,6 +205,8 @@ changelog entry.
- Move `EventLoopExtRunOnDemand` from platform module to `winit::event_loop::run_on_demand`.
- Use `NamedKey`, `Code` and `Location` from the `keyboard-types` v0.8 crate.
- Deprecate `Window::set_ime_allowed`, `Window::set_ime_cursor_area`, and `Window::set_ime_purpose`.
- On macOS, use the objc2 feature `relax-sign-encoding` to fix a runtime crash #4299
in macOS 26 with objc type checking.
### Removed