Skip to content

Commit 9f8fd7d

Browse files
author
Fatme
authored
Merge pull request #3599 from NativeScript/fatme/ios-sim-async
Use async API from ios-sim
2 parents dbe20cd + 61a0a80 commit 9f8fd7d

File tree

4 files changed

+30
-30
lines changed

4 files changed

+30
-30
lines changed

lib/device-path-provider.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export class DevicePathProvider implements IDevicePathProvider {
1313
public async getDeviceProjectRootPath(device: Mobile.IDevice, options: IDeviceProjectRootOptions): Promise<string> {
1414
let projectRoot = "";
1515
if (this.$mobileHelper.isiOSPlatform(device.deviceInfo.platform)) {
16-
projectRoot = device.isEmulator ? this.$iOSSimResolver.iOSSim.getApplicationPath(device.deviceInfo.identifier, options.appIdentifier) : LiveSyncPaths.IOS_DEVICE_PROJECT_ROOT_PATH;
16+
projectRoot = device.isEmulator ? await this.$iOSSimResolver.iOSSim.getApplicationPath(device.deviceInfo.identifier, options.appIdentifier) : LiveSyncPaths.IOS_DEVICE_PROJECT_ROOT_PATH;
1717

1818
if (!projectRoot) {
1919
this.$errors.failWithoutHelp("Unable to get application path on device.");

npm-shrinkwrap.json

+27-27
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"inquirer": "0.9.0",
4444
"ios-device-lib": "0.4.14",
4545
"ios-mobileprovision-finder": "1.0.10",
46-
"ios-sim-portable": "3.4.5",
46+
"ios-sim-portable": "4.0.0",
4747
"jimp": "0.2.28",
4848
"lockfile": "1.0.3",
4949
"lodash": "4.13.1",

0 commit comments

Comments
 (0)