Retrieving the bundleID of installed applications on your iOS device

Retrieving the bundleID of installed applications on your iOS device

When configuring a iOS device and app for testing, Silk Test generates a connection string. A connection string consists of a number of component parts which define the device, mobile platform and app to be used for testing. In general, Silk Test will always generate a connection string which specifies an app file, for example:-

sConnectionString = "deviceName=iPad;platformName=iOS;host=MacTesting;app=C:\MyMobileApps\InsuranceMobile.ipa"

If you do not wish to either specify a .ipa file and do not have access to one or you simply wish to test an already installed application, you can use the bundleId. This article will demonstrate how you can retrieve your bundleId with commands using Terminal on your MAC machine. 

When testing native mobile applications, you would traditionally receive a debug/enterprise version of the application either via a .ipa or .zip (for iOS Simulators) file. If you don't have the files, your developer would instead provide the bundleId for the application. However, if you don't know this, you can use the below steps to retrieve a list of all bundleId for installed apps on the connected device. 

Using the following command in Terminal on your MAC, you can return a list of bundleId's for installed applications on the device.

ideviceinstaller -U <udid> -l

You would replace the <udid> with the udid of your iOS device. You can retrieve a list of udids for any connected device by running the following command:

idevice_id -l

As a demonstration, we can retrieve the bundleId against our sample application 'Insurance Mobile' as shown in the screenshot below.

The retrieved bundleId = silktest.InsuranceMobile

Using the bundleId, we are able to specify this within our connectionString, and launch the application directly with Silk Test.

sConnectionString = "deviceName=iPad;platformName=iOS;host=MacTesting;bundleId=silktest.InsuranceMobile"


Some content on Community Tips & Information pages is not officially supported by Micro Focus. Please refer to our Terms of Use for more detail.
Top Contributors
Version history
Revision #:
1 of 1
Last update:
‎2017-06-22 18:12
Updated by:
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.