Skip to content

Commit d1417da

Browse files
chore: merge 'origin/release' into vladimirov/merge-rel-master
2 parents d1110ef + 761d1d1 commit d1417da

File tree

4 files changed

+28
-3
lines changed

4 files changed

+28
-3
lines changed

CHANGELOG.md

+19
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,25 @@
11
NativeScript CLI Changelog
22
================
33

4+
5.4.2 (2019, June 19)
5+
==
6+
7+
### Fixed
8+
* [Fixed #4732](https://github.com/NativeScript/nativescript-cli/pull/4732): HMR does not work with `tns cloud run ios ...` on Windows
9+
10+
11+
5.4.1 (2019, June 17)
12+
==
13+
14+
### Fixed
15+
* [Fixed #4226](https://github.com/NativeScript/nativescript-cli/issues/4226): Slowly attaching to debugger on real iOS device with bundle
16+
* [Fixed #4584](https://github.com/NativeScript/nativescript-cli/issues/4584): Invalid App Store Icon Error, while uploading an iOS app with CLI generated icons
17+
* [Fixed #4608](https://github.com/NativeScript/nativescript-cli/issues/4608): Misleading message for min runtime version
18+
* [Fixed #4664](https://github.com/NativeScript/nativescript-cli/pull/4664): `tns cloud run...` command does not respect useLegacyWorkflow flag
19+
* [Fixed #4665](https://github.com/NativeScript/nativescript-cli/issues/4665): Incorrect error is shown when unsupported Node.js version is used
20+
* [Fixed #4664](https://github.com/NativeScript/nativescript-cli/pull/4679): `$logger` fails to print null objects
21+
* [Fixed #4665](https://github.com/NativeScript/nativescript-cli/issues/4701): Deprecate support for `tns init` command
22+
423

524
5.4.0 (2019, May 15)
625
==

lib/common/mobile/ios/device/ios-device.ts

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ export class IOSDevice extends IOSDeviceBase {
1818
private $injector: IInjector,
1919
protected $iOSDebuggerPortService: IIOSDebuggerPortService,
2020
protected $deviceLogProvider: Mobile.IDeviceLogProvider,
21+
protected $logger: ILogger,
2122
protected $lockService: ILockService,
2223
private $iOSSocketRequestExecutor: IiOSSocketRequestExecutor,
2324
private $devicePlatformsConstants: Mobile.IDevicePlatformsConstants,

lib/common/mobile/ios/ios-device-base.ts

+7-2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ export abstract class IOSDeviceBase implements Mobile.IiOSDevice {
77
protected abstract $deviceLogProvider: Mobile.IDeviceLogProvider;
88
protected abstract $iOSDebuggerPortService: IIOSDebuggerPortService;
99
protected abstract $lockService: ILockService;
10+
protected abstract $logger: ILogger;
1011
abstract deviceInfo: Mobile.IDeviceInfo;
1112
abstract applicationManager: Mobile.IDeviceApplicationManager;
1213
abstract fileSystem: Mobile.IDeviceFileSystem;
@@ -22,8 +23,12 @@ export abstract class IOSDeviceBase implements Mobile.IiOSDevice {
2223
}
2324

2425
await this.attachToDebuggerFoundEvent(appId, projectName, projectDir);
25-
if (ensureAppStarted) {
26-
await this.applicationManager.startApplication({ appId, projectName, projectDir });
26+
try {
27+
if (ensureAppStarted) {
28+
await this.applicationManager.startApplication({ appId, projectName, projectDir });
29+
}
30+
} catch (err) {
31+
this.$logger.trace(`Unable to start application ${appId} on device ${this.deviceInfo.identifier} in getDebugSocket method. Error is: ${err}`);
2732
}
2833

2934
this.cachedSockets[appId] = await this.getDebugSocketCore(appId);

lib/common/mobile/ios/simulator/ios-simulator-device.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export class IOSSimulator extends IOSDeviceBase implements Mobile.IiOSDevice {
2222
private $iOSEmulatorServices: Mobile.IiOSSimulatorService,
2323
private $iOSNotification: IiOSNotification,
2424
private $iOSSimulatorLogProvider: Mobile.IiOSSimulatorLogProvider,
25-
private $logger: ILogger) {
25+
protected $logger: ILogger) {
2626
super();
2727
this.applicationManager = this.$injector.resolve(applicationManagerPath.IOSSimulatorApplicationManager, { iosSim: this.$iOSSimResolver.iOSSim, device: this });
2828
this.fileSystem = this.$injector.resolve(fileSystemPath.IOSSimulatorFileSystem, { iosSim: this.$iOSSimResolver.iOSSim });

0 commit comments

Comments
 (0)