Skip to content

Commit 60a5aea

Browse files
authored
feat(cli): support Trunk for iOS dev out of the box (#11181)
1 parent e10fdb7 commit 60a5aea

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.changes/trunk-ios-dev.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"tauri-cli": patch:enhance
3+
"@tauri-apps/cli": patch:enhance
4+
---
5+
6+
Set the `TRUNK_SERVE_ADDRESS` environment variable when running on iOS physical devices to support Trunk.

crates/tauri-cli/src/mobile/ios/dev.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,7 @@ fn use_network_address_for_dev_url(
344344

345345
if let Some(ip) = ip {
346346
std::env::set_var("TAURI_DEV_HOST", ip.to_string());
347+
std::env::set_var("TRUNK_SERVE_ADDRESS", ip.to_string());
347348
if ip.is_ipv6() {
348349
// in this case we can't ping the server for some reason
349350
dev_options.no_dev_server_wait = true;

0 commit comments

Comments
 (0)