简体   繁体   中英

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)

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

步骤截图

  • 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

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.

Try this terminal cmd:

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

example:

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

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.

您可以通过将 .ipa 的扩展名更改为 .zip,然后解压缩 .zip 文件来获取它。

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.

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.

If You Have the IPA File

  1. Copy the .ipa file and rename the extension to .zip. (So, for example, Pages.ipa will become Pages.zip.)

  2. Unzip the ZIP file. You will get a new folder named the same way as the original ZIP file.

  3. Search for the iTunesMetadata.plist file in that new folder.

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

  1. Use a tool like iExplorer, which allows you to browse your device storage directly.
  2. Connect your iPhone/iPad to your Mac via USB and open iExplorer or a similar utility.
  3. Open the Apps folder on your device and locate the app you're interested in.
  4. Locate the iTunesMetadata.plist file and follow the steps above that you used to unpack the .ipa file.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM