diff --git a/lib/real-device.js b/lib/real-device.js index 218de5c48..c6029c4d2 100644 --- a/lib/real-device.js +++ b/lib/real-device.js @@ -199,7 +199,9 @@ class RealDevice { let installProxyService; try { installProxyService = await services.startInstallationProxyService(this.udid); - const apps = await installProxyService.listApplications(); + const apps = await installProxyService.listApplications({ + returnAttributes: ['CFBundleIdentifier', 'CFBundleExecutable'] + }); if (!apps[bundleId]) { log.info(`The bundle id '${bundleId}' did not exist`); return false; @@ -260,7 +262,9 @@ class RealDevice { async getUserInstalledBundleIdsByBundleName(bundleName) { const service = await services.startInstallationProxyService(this.udid); try { - const applications = await service.listApplications({applicationType: 'User'}); + const applications = await service.listApplications({ + applicationType: 'User', returnAttributes: ['CFBundleIdentifier', 'CFBundleName'] + }); return _.reduce( applications, (acc, {CFBundleName}, key) => {