Skip to content

Commit 1a12db8

Browse files
committed
Fix iOS device name not shown in status bar indicator
1 parent 85310a5 commit 1a12db8

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

src/extension/ios/iOSPlatform.ts

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,9 +225,18 @@ export class IOSPlatform extends GeneralMobilePlatform {
225225
PlatformType.iOS,
226226
).process(runIosSpawn);
227227

228-
// Ensure target is set for status indicator
228+
// Save target info for status indicator
229229
if (!this.target) {
230-
await this.getTarget();
230+
const target = await this.getTarget();
231+
if (target && target.name) {
232+
this.target = new IOSTarget(
233+
target.isOnline,
234+
target.isVirtualTarget,
235+
target.id,
236+
target.name,
237+
target.system,
238+
);
239+
}
231240
}
232241
});
233242
}

0 commit comments

Comments
 (0)