Skip to content

Commit 669272f

Browse files
anlumotronical
authored andcommitted
Disable objc2 encoding assertions on iOS Simulator (#9583)
The definition of MTLResourceID differs between iOS simulator and iOS device SDKs, which objc2-metal doesn't handle correctly. See madsmtm/objc2#795 Fixes #9583
1 parent 4ea5433 commit 669272f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

internal/renderers/skia/Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,10 @@ wgpu-27 = { workspace = true, optional = true, features = ["vulkan"] }
120120
# Text layout is enabled here just so that we can make use of the pre-built Skia libraries.
121121
skia-safe = { version = "0.89", features = ["textlayout"] }
122122

123+
[target.aarch64-apple-ios-sim.dependencies]
124+
# Disabling encoding assertions until https://github.com/madsmtm/objc2/issues/795 is fixed.
125+
objc2 = { version = "*", features = ["disable-encoding-assertions"] }
126+
123127
[build-dependencies]
124128
cfg_aliases = { workspace = true }
125129

0 commit comments

Comments
 (0)