How to get bundle id of iOS app - either using .ipa file or app installed on iPhone

35,821

Solution 1

To find out the bundle id of any existing app:

  1. Connect your iOS device to your Mac with iOS wire
  2. Open the Console app on Mac
  3. Select your device under the Devices heading (top left)
  4. Enter the name of your app in the search bar
  5. Now launch the app in your iOS device
  6. You will see the first log in the console like SpringBoard Bootstrapping com.xxxx.xxx.kids with intent foreground-interactive

Screenshot of the steps

Solution 2

  • Extract the contents of .ipa file using any app, this will give you a Payload folder. There will be only a single file inside the Payload 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 either Xcode or textEdit there you can find the bundle id

Cheers

Solution 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

Try this terminal cmd:

osascript -e 'id of app "{path of .app}"'

example:

osascript -e 'id of app "~/Desktop/Fontli.app"'

Solution 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.

Share:
35,821

Related videos on Youtube

NRM
Author by

NRM

Updated on January 04, 2021

Comments

  • NRM
    NRM over 3 years

    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)

  • vikramvi
    vikramvi almost 8 years
    CFBundleIdentifier is the exact key to be looked
  • Rein rPavi
    Rein rPavi almost 7 years
    That's short and sweet, what if I want it directly from .ipa instead of .app file, is there a way to get it, I don't want to zip and then open the payload and then get the .app file.
  • sayhan
    sayhan over 4 years
    easiest method I've seen. Thanks
  • Andres Paladines
    Andres Paladines over 2 years
    You can add "&country=us" as a example if you need it.
  • Devis L.
    Devis L. over 2 years
    nice, always looking for a quick command line option. For IPA files you can run a temporary "unzip" and then delete the files, e.g. unzip -q *.ipa && mv Payload/*.app Payload/tmp.app && osascript -e 'id of app "./Payload/tmp.app"' && rm -fR Payload

Related