Skip to content

Commit 6936f47

Browse files
committed
fix: scope objc2 to iOS builds
Only compile objc2 on iOS so Linux and Windows release builds stop pulling in an Apple-only crate and the cross-platform desktop release workflow can complete. Made-with: Cursor
1 parent 77b173a commit 6936f47

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src-tauri/Cargo.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,12 @@ base64 = "0.22.1"
2727
tauri-plugin-dialog = "2.6.0"
2828
tauri-plugin-clipboard-manager = "2.3.2"
2929
tauri-plugin-localhost = "2"
30-
objc2 = "0.6.4"
3130
tauri-plugin-http = "2.5.7"
3231

32+
# iOS-only dependencies
33+
[target.'cfg(target_os = "ios")'.dependencies]
34+
objc2 = "0.6.4"
35+
3336
# Desktop-only dependencies
3437
[target.'cfg(not(target_os = "ios"))'.dependencies]
3538
portable-pty = "0.8"

0 commit comments

Comments
 (0)