'How to get bundle id of iOS app - either using .ipa file or app installed on iPhone
Currently I have .ipa
file and same app can be installed through test flight. I don’t have the app source code. I tried extracting the files from .ipa file using Archive Utility but there was no plist file. I am not sure how do I get the bundle id for this app- (either from .ipa
file or by using the installed app and what is the process?) as i want to automate this app test on real device
(Note: .app
file or source code is not available and the test app is signed with valid developer provisioning profile)
Solution 1:[1]
To find out the bundle id of any existing app:
- Connect your iOS device to your Mac with iOS wire
- Open the
Console
app on Mac - Select your device under the Devices heading (top left)
- Enter the name of your app in the search bar
- Now launch the app in your iOS device
- You will see the first log in the console like
SpringBoard Bootstrapping com.xxxx.xxx.kids with intent foreground-interactive
Solution 2:[2]
- Extract the contents of
.ipa
file using any app, this will give you aPayload
folder. There will be only a single file inside thePayload
Folder - Right Click on file -> Show Package content. This will redirect you to a new finder window with lot of files
- Open
info.plist
file using eitherXcode
ortextEdit
there you can find the bundle id
Cheers
Solution 3:[3]
If your app is in the App Store.
1) Find the app online (Google for the iTunes link). For this example we use Apple Pages: https://itunes.apple.com/app/pages/id361309726?mt=8.
2) Copy the number after the id in the URL. (Here: 361309726).
3) Open https://itunes.apple.com/lookup?id=361309726 where you replace the ID with the one you looked up.
4) Search the output for "bundleID". In this example it looks like this (next to a bunch of other data): "bundleId":"com.apple.Pages". So for Apple, the bundle ID is com.apple.Pages.
Solution 4:[4]
Try this terminal cmd:
osascript -e 'id of app "{path of .app}"'
example:
osascript -e 'id of app "~/Desktop/Fontli.app"'
Solution 5:[5]
If your app is in App Store,Then you can download the app from iTunes store. Then open that file in finder. There should be plist file. if you open it, you you will be able to find the bundle id there.
Solution 6:[6]
You can get it by Changing the extension of .ipa to .zip and then uncompress .zip file.
Solution 7:[7]
If you have access to the testflight admin you can get the bundle id from the app information on that site. Otherwise you can extract the file using archive utility like you said and right click on the application within and select show package contents, this is where your info.plist will be stored.
Solution 8:[8]
If the App is signed with a Proper profile, and you have the access to the developer portal via the Apple ID, you can go to the portal and check out the Bundle ID in the identified --> AppID under Certificate, Identifiers and profiles
Or you can access it via test flight.
Or else, as Mike Mentioned, Right Click on the ipa, click show package contents, Find the info.plist and you will find the Bundle identifier there.
Solution 9:[9]
If You Have the IPA File
Copy the .ipa file and rename the extension to .zip. (So, for example, Pages.ipa will become Pages.zip.)
Unzip the ZIP file. You will get a new folder named the same way as the original ZIP file.
Search for the iTunesMetadata.plist file in that new folder.
Open the file with a text editor and search for softwareVersionBundleId. For example, for the Pages app, the bundle ID is com.apple.Pages.
You can also use iTunes to download the app .ipa file directly and then find the bundle ID, like shown below.
If You Only Have the App on Your Phone
- Use a tool like iExplorer, which allows you to browse your device storage directly.
- Connect your iPhone/iPad to your Mac via USB and open iExplorer or a similar utility.
- Open the Apps folder on your device and locate the app you’re interested in.
- Locate the iTunesMetadata.plist file and follow the steps above that you used to unpack the .ipa file.
Solution 10:[10]
For me the easiest methos is to install ios-deploy (https://github.com/ios-control/ios-deploy)
Then just run in cmd
ios-deploy -B
You will get list of all bundle ids on your device
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow