c4rt1y

获取ios app的 bundle identidier信息

0x01 介绍

通过以下几种方法,找到bundle identidier信息,这是作为ios app启动的核心参数。
正常情况下,如果自己打包的文件,是可以看到bundle id的信息,打开 XCode上既可以看到该信息。
但若是第三方数据,则比较难以确定,本文的目的就是记录两种模式,如何找打bundle identidier信息。

0x02 方法

方法一:若本地存在ipa文件,终端打开,进行查看Info.plist文件
cocos-MacBook-Air appium $ cat ~/Downloads/UICatalog.app/Info.plist
bplist00�


!!"#!$%&'%)*+,*-./0,146@ABDH_BuildMachineOSBuild_CFBundleDevelopmentRegion_CFBundleDisplayName_CFBundleExecutable_CFBundleIdentifier_CFBundleInfoDictionaryVersion\CFBundleName_CFBundlePackageType_CFBundleShortVersionString_CFBundleSignature_CFBundleSupportedPlatforms_CFBundleVersionZDTCompiler_DTPlatformBuild^DTPlatformName_DTPlatformVersionZDTSDKBuildYDTSDKNameWDTXcode\DTXcodeBuild_LSRequiresIPhoneOS_MinimumOSVersion_NSAppTransportSecurity^UIDeviceFamily^UILaunchImages_UIMainStoryboardFile_UIMainStoryboardFile~ipad_UIRequiredDeviceCapabilities_ UISupportedInterfaceOrientations_%UISupportedInterfaceOrientations~ipadU19F96RenYUICatalog_&com.example.apple-samplecode.UICatalogS6.0TAPPLT2.13T????�(_iPhoneSimulator_"com.apple.compilers.llvm.clang.1_0V17B102_iphonesimulatorT13.2_iphonesimulator13.2T1120V11B500	�20_NSAllowsArbitraryLoads	�5�7�89:;<=>?_UILaunchImageMinimumOSVersion_UILaunchImageName_UILaunchImageOrientation_UILaunchImageSizeS7.0_LaunchImage-700-568hXPortraitZ{320, 568}[Main_iPhoneYMain_iPad�CUarmv7�EFG_UIInterfaceOrientationPortrait_#UIInterfaceOrientationLandscapeLeft_$UIInterfaceOrientationLandscapeRight�EIFG_(UIInterfaceOrientationPortraitUpsideDowG]y������-J\gy��������%<Xw������
          %JQch~������������5>IU_agk����J	%

找到com打头,这段则为 com.example.apple-samplecode.UICatalog


方法二:已经安装的ipa软件,使用Mac下的Console工具查看

1、用数据线连接手机和Mac.
2、打开Mac 应用Console.
3、在左侧栏Devices中,选择你的设备
4、运行你要查看的APP.
5、在搜索栏里面输入App的名字.
6、你可以看到在process列中找到SpringBoard, Message列中找到 Bootstrapping,点击这一行,Allowing tap for icon view 'com.example.apple-samplecode.UICatalog',bundleId 类似于com.example.apple-samplecode.UICatalog 就显示在下图。

find-bundle-identifier

方法三:在APP下载链接里查看
打开Mac的浏览器,搜索app在App Store中iTunes的链接. 比如:
https://itunes.apple.com/us/app/microsoft-outlook/id951937596?mt=8.
拷贝数字在URL中id的后面, 比如951937596.
打开浏览器
https://itunes.apple.com/lookup?id=<Number copied in step 2>.
比如,
https://itunes.apple.com/lookup?id=951937596.
当提示下载text file文本文件, 保存文件. 默认名字是1.txt.
打开1.txt文件,搜索bundleId. 比如:
“bundleId”:“com.microsoft.Office.Outlook”

0x03 资料来源

https://stackoverflow.com/questions/27509838/how-to-get-bundle-id-of-ios-app-either-using-ipa-file-or-app-installed-on-iph
https://blog.csdn.net/zgpeace/article/details/100988622
GoTop