From 816e395a78bcc1ff347038b516025d39f5373c75 Mon Sep 17 00:00:00 2001 From: Ionitron Date: Wed, 7 Jan 2026 14:16:51 +0000 Subject: [PATCH 1/3] chore(release): 2.0.2 [skip ci] ## [2.0.2](https://github.com/ionic-team/native-run/compare/v2.0.1...v2.0.2) (2026-01-07) ### Bug Fixes * **android:** select available emulator port and improve emulator detection ([#399](https://github.com/ionic-team/native-run/issues/399)) ([45745fe](https://github.com/ionic-team/native-run/commit/45745fe2897c6cbded83bc735f66f910c0351018)) --- CHANGELOG.md | 7 +++++++ package.json | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b85fe77..9c13f2b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +## [2.0.2](https://github.com/ionic-team/native-run/compare/v2.0.1...v2.0.2) (2026-01-07) + + +### Bug Fixes + +* **android:** select available emulator port and improve emulator detection ([#399](https://github.com/ionic-team/native-run/issues/399)) ([45745fe](https://github.com/ionic-team/native-run/commit/45745fe2897c6cbded83bc735f66f910c0351018)) + ## [2.0.1](https://github.com/ionic-team/native-run/compare/v2.0.0...v2.0.1) (2024-01-25) diff --git a/package.json b/package.json index 48a3ef8..65b3037 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "native-run", - "version": "2.0.1", + "version": "2.0.2", "description": "A CLI for running apps on iOS/Android devices and simulators/emulators", "bin": { "native-run": "bin/native-run" From 2bd95f2ed0b7405aa7578d9b575eec7073b4a45b Mon Sep 17 00:00:00 2001 From: Ionitron Date: Thu, 8 Jan 2026 12:28:17 +0000 Subject: [PATCH 2/3] chore(release): 2.0.3 [skip ci] ## [2.0.3](https://github.com/ionic-team/native-run/compare/v2.0.2...v2.0.3) (2026-01-08) ### Bug Fixes * Support wireless iOS devices ([#398](https://github.com/ionic-team/native-run/issues/398)) ([cf7a229](https://github.com/ionic-team/native-run/commit/cf7a2290d662d0dc087957a86b581d1447a6587e)) --- CHANGELOG.md | 7 +++++++ package.json | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9c13f2b..68d6730 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +## [2.0.3](https://github.com/ionic-team/native-run/compare/v2.0.2...v2.0.3) (2026-01-08) + + +### Bug Fixes + +* Support wireless iOS devices ([#398](https://github.com/ionic-team/native-run/issues/398)) ([cf7a229](https://github.com/ionic-team/native-run/commit/cf7a2290d662d0dc087957a86b581d1447a6587e)) + ## [2.0.2](https://github.com/ionic-team/native-run/compare/v2.0.1...v2.0.2) (2026-01-07) diff --git a/package.json b/package.json index 65b3037..d85b700 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "native-run", - "version": "2.0.2", + "version": "2.0.3", "description": "A CLI for running apps on iOS/Android devices and simulators/emulators", "bin": { "native-run": "bin/native-run" From 531d5c6351ff0f4c3fbb0d4bc28cb58927c36794 Mon Sep 17 00:00:00 2001 From: DanW Date: Thu, 17 Sep 2026 15:35:26 -0400 Subject: [PATCH 3/3] Updated runOnSimulator function to handle new xcode27 DeviceHub.app replaces Simulator.app. Backwards compatible for previous xcode versions --- src/ios/utils/simulator.ts | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/ios/utils/simulator.ts b/src/ios/utils/simulator.ts index ebe8a4c..99e4ade 100644 --- a/src/ios/utils/simulator.ts +++ b/src/ios/utils/simulator.ts @@ -5,7 +5,7 @@ import { Exception } from '../../errors'; import { log } from '../../utils/log'; import { onBeforeExit } from '../../utils/process'; -import { getXCodePath } from './xcode'; +import { getXCodePath, getXcodeVersionInfo } from './xcode'; const debug = Debug('native-run:ios:utils:simulator'); @@ -84,12 +84,13 @@ export async function runOnSimulator(udid: string, appPath: string, bundleId: st } const xCodePath = await getXCodePath(); + const [xcodeVersion] = getXcodeVersionInfo(); + const xcodeMajorVersion = Number(xcodeVersion.split('.')[0]); + const simulatorAppPath = + xcodeMajorVersion >= 27 ? `${xCodePath}/../Applications/DeviceHub.app` : `${xCodePath}/Applications/Simulator.app`; + debug(`Running simulator ${udid}`); - const openResult = spawnSync( - 'open', - [`${xCodePath}/Applications/Simulator.app`, '--args', '-CurrentDeviceUDID', udid], - { encoding: 'utf8' }, - ); + const openResult = spawnSync('open', [simulatorAppPath, '--args', '-CurrentDeviceUDID', udid], { encoding: 'utf8' }); if (openResult.status) { throw new Exception(`There was an error opening simulator: ${openResult.stderr}`); }