Skip to content

Commit 9e9a54d

Browse files
authored
fix: support iOS 27 development using Xcode 27 (#15890)
* fix: support iOS 27 development using Xcode 27 * pin swift-rs to 1.0.8 * fix doc * fix doc * do not UIApplicationSupportsMultipleScenes by default * update tao * update example * update schemas * fix windows build
1 parent cb2ecac commit 9e9a54d

14 files changed

Lines changed: 137 additions & 36 deletions

File tree

‎.changes/ios-27.md‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
tauri-cli: minor:deps
3+
"@tauri-apps/cli": minor:deps
4+
---
5+
6+
Enable scenes lifecycle by default to support iOS 27.

‎.changes/swift-27.md‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
tauri: minor:deps
3+
tauri-utils: minor:deps
4+
---
5+
6+
Update swift-rs to support builds using Xcode 27.

‎.changes/xcode-27.md‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
tauri-cli: minor:deps
3+
"@tauri-apps/cli": minor:deps
4+
---
5+
6+
Update cargo-mobile2 and change the default minimum iOS version to 15.0 to support Xcode 27.

‎Cargo.lock‎

Lines changed: 83 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎crates/tauri-cli/Cargo.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ name = "cargo-tauri"
3636
path = "src/main.rs"
3737

3838
[target."cfg(any(target_os = \"linux\", target_os = \"dragonfly\", target_os = \"freebsd\", target_os = \"openbsd\", target_os = \"netbsd\", target_os = \"windows\", target_os = \"macos\"))".dependencies]
39-
cargo-mobile2 = { version = "0.22.4", default-features = false }
39+
cargo-mobile2 = { version = "0.22.5", default-features = false }
4040

4141
[dependencies]
4242
jsonrpsee = { version = "0.26", features = ["server"] }

‎crates/tauri-cli/config.schema.json‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
},
9393
"createUpdaterArtifacts": false,
9494
"iOS": {
95-
"minimumSystemVersion": "14.0"
95+
"minimumSystemVersion": "15.0"
9696
},
9797
"icon": [],
9898
"linux": {
@@ -2338,7 +2338,7 @@
23382338
"iOS": {
23392339
"description": "iOS configuration.",
23402340
"default": {
2341-
"minimumSystemVersion": "14.0"
2341+
"minimumSystemVersion": "15.0"
23422342
},
23432343
"allOf": [
23442344
{
@@ -3923,8 +3923,8 @@
39233923
]
39243924
},
39253925
"minimumSystemVersion": {
3926-
"description": "A version string indicating the minimum iOS version that the bundled application supports. Defaults to `13.0`.\n\n Maps to the IPHONEOS_DEPLOYMENT_TARGET value.",
3927-
"default": "14.0",
3926+
"description": "A version string indicating the minimum iOS version that the bundled application supports. Defaults to `15.0`.\n\n Maps to the IPHONEOS_DEPLOYMENT_TARGET value.",
3927+
"default": "15.0",
39283928
"type": "string"
39293929
},
39303930
"infoPlist": {

‎crates/tauri-cli/templates/app/src-tauri/src/lib.rs‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#[cfg_attr(mobile, tauri::mobile_entry_point)]
22
pub fn run() {
3+
#[cfg(target_os = "ios")]
4+
let mut requested_scenes = 0u32;
5+
36
tauri::Builder::default()
47
.setup(|app| {
58
if cfg!(debug_assertions) {
@@ -12,5 +15,5 @@ pub fn run() {
1215
Ok(())
1316
})
1417
.run(tauri::generate_context!())
15-
.expect("error while running tauri application");
18+
.expect("error while building tauri application");
1619
}

‎crates/tauri-cli/templates/mobile/ios/project.yml‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,12 @@ targets:
3333
sources:
3434
- path: Sources
3535
- path: Assets.xcassets
36+
# Exclude built static libs: regenerating with xcodegen after a build
37+
# otherwise turns the per-configuration libapp.a copies into colliding
38+
# resources ("Multiple commands produce …/libapp.a"). They are linked
39+
# via LIBRARY_SEARCH_PATHS, never bundled as resources.
3640
- path: Externals
41+
excludes: ["**/*.a"]
3742
- path: {{app.name}}_iOS
3843
- path: {{app.asset-dir}}
3944
buildPhase: resources

‎crates/tauri-runtime-wry/Cargo.toml‎

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ wry = { version = "0.56.0", default-features = false, features = [
1717
"os-webview",
1818
"linux-body",
1919
] }
20-
tao = { version = "0.36.0", default-features = false, features = ["rwh_06"] }
20+
tao = { version = "0.37.0", default-features = false, features = ["rwh_06"] }
2121
tauri-runtime = { workspace = true }
2222
tauri-utils = { workspace = true }
2323
raw-window-handle = "0.6"
@@ -33,7 +33,11 @@ once_cell = "1.20"
3333

3434
[target."cfg(windows)".dependencies.windows]
3535
version = "0.61"
36-
features = ["Win32_Foundation", "Win32_Graphics_Dwm"]
36+
features = [
37+
"Win32_Foundation",
38+
"Win32_Graphics_Dwm",
39+
"Win32_UI_WindowsAndMessaging",
40+
]
3741

3842
[target."cfg(any(target_os = \"linux\", target_os = \"dragonfly\", target_os = \"freebsd\", target_os = \"openbsd\", target_os = \"netbsd\"))".dependencies]
3943
gtk = { version = "0.18", features = ["v3_24"] }
@@ -67,5 +71,5 @@ objc-exception = []
6771
tracing = ["dep:tracing", "wry/tracing"]
6872
macos-proxy = ["wry/mac-proxy"]
6973
unstable = []
70-
common-controls-v6 = []
74+
common-controls-v6 = ["windows/Win32_UI_Controls", "windows/Win32_UI_Shell"]
7175
dbus = ["tao/dbus"]

‎crates/tauri-schema-generator/schemas/config.schema.json‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
},
9393
"createUpdaterArtifacts": false,
9494
"iOS": {
95-
"minimumSystemVersion": "14.0"
95+
"minimumSystemVersion": "15.0"
9696
},
9797
"icon": [],
9898
"linux": {
@@ -2338,7 +2338,7 @@
23382338
"iOS": {
23392339
"description": "iOS configuration.",
23402340
"default": {
2341-
"minimumSystemVersion": "14.0"
2341+
"minimumSystemVersion": "15.0"
23422342
},
23432343
"allOf": [
23442344
{
@@ -3923,8 +3923,8 @@
39233923
]
39243924
},
39253925
"minimumSystemVersion": {
3926-
"description": "A version string indicating the minimum iOS version that the bundled application supports. Defaults to `13.0`.\n\n Maps to the IPHONEOS_DEPLOYMENT_TARGET value.",
3927-
"default": "14.0",
3926+
"description": "A version string indicating the minimum iOS version that the bundled application supports. Defaults to `15.0`.\n\n Maps to the IPHONEOS_DEPLOYMENT_TARGET value.",
3927+
"default": "15.0",
39283928
"type": "string"
39293929
},
39303930
"infoPlist": {

0 commit comments

Comments
 (0)