NRM
NRM

Reputation: 301

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)

Upvotes: 24

Views: 58929

Answers (12)

Chandan Dash
Chandan Dash

Reputation: 3

Check the below steps, and Get the bundle id (identifiers) of any iOS application-

  1. Go to application
  2. Right click on app
  3. Show Package contents
  4. Check and Open info.plist file.
  5. Search one by one line. and Get bundle identifier

Upvotes: 0

Deolas
Deolas

Reputation: 372

If your app is in the App Store, follow these steps-

  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.

Upvotes: 22

user6502515
user6502515

Reputation: 253

If you want to get the bundle id of the apps installed in your iPhone which is connected to a Mac OS system, then simply

  1. Open terminal
  2. If you have installed Homebrew, get ideviceinstaller using below command

brew install ideviceinstaller

  1. Connect your iPhone to Mac and run the command

ideviceinstaller -l

This will list all the installed apps on the connected iOS device along with their bundle IDs

Upvotes: 0

s-hunter
s-hunter

Reputation: 25796

For ipa file:

  1. Change the .ipa file extension to .zip. For example, if it's helloworld.ipa, change it to helloworld.zip
  2. Double click on the zip file to uncompress it, and it will give you a folder called helloworld.
  3. Open uncompressed folder helloworld.
  4. Open the Payload folder.
  5. Right click on the app file, and select Show Package Contents
  6. Open info.plist with a text editor.
  7. Look for CFBundleIdentifier. Or if you know part of the identifier, search for that string in the file.

Upvotes: 0

User Userov
User Userov

Reputation: 11

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

Upvotes: 1

Shashank Agrawal
Shashank Agrawal

Reputation: 25797

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

Upvotes: 32

SaRaVaNaN DM
SaRaVaNaN DM

Reputation: 4410

Try this terminal cmd:

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

example:

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

Upvotes: 7

Moin Pansare
Moin Pansare

Reputation: 219

  • 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

Upvotes: 19

DeepakMK14
DeepakMK14

Reputation: 131

You can get it by Changing the extension of .ipa to .zip and then uncompress .zip file.

Upvotes: 1

Eyal Sooliman
Eyal Sooliman

Reputation: 2248

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.

Upvotes: 2

Kakshil Shah
Kakshil Shah

Reputation: 3796

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.

Upvotes: 0

Mike Mellor
Mike Mellor

Reputation: 1346

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.

Upvotes: 0

Related Questions