Skip to content

Workaround a crash in macOS tahoe 26 / xcode 16.4+ #20146

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4380,6 +4380,17 @@ inherits = "release"
lto = "fat"
panic = "abort"

# NOTE: This is a temporary workaround for macOS tahoe, and xcode 16.4+.
# Some requirement for FFI has changed, and macOS crashes because of a
# sign mismatch ("expected return to have type code 'q', but found 'Q'")
# This workaround disables the problematic check entirely.
# objc2 0.6+ has a better workaround that only disables sign conversion
# checks, see https://github.com/madsmtm/objc2/issues/765#issuecomment-2996136843,
# and new winit versions are enabling this by default: https://github.com/madsmtm/objc2/issues/765.
# When that has landed and Bevy has updated to a new winit version this workaround should be removed.
[profile.dev.package.objc2]
debug-assertions = false

[package.metadata.docs.rs]
# This cfg is needed so that #[doc(fake_variadic)] is correctly propagated for
# impls for re-exported traits. See https://github.com/rust-lang/cargo/issues/8811
Expand Down
Loading