IOS檢視包名、版本號、裝置資訊、簽名、程式ID

Crett發表於2017-09-13

獲取info.plist檔案

  1. 獲取ipa的安裝包,可以通過iTools匯出手機中已安裝App的ipa包。
  2. 匯出ipa包後將字尾“.ipa”改成“.zip”並解壓。
  3. 在解壓的檔案找到info.plist檔案。

開啟info.plist檔案

  1. windows下需要安裝一個plist檔案編輯器:
    plist edit下載地址:http://download.cnet.com/Plist-Editor/3000-2141_4-10909598.html
  2. 下載plist edit並安裝然後之前找到的info.plist檔案圖示會變成一個黃色圖示,雙擊開啟。

獲取包名、程式ID、協議名

在plist edit中可以通過ctrl+f查詢一下資訊。

  • CFBundleIdentifier包名
  • CFBundleExecutable 程式id
  • CFBundleName(一般和程式id是一樣的,然後同info.plist檔案中會有一個和程式id名的檔案)
  • CFBundleURLTypes 協議 (一般有多個)用來喚起APP,暫時還沒有使用到

舉例參考

應用名稱 包名 程式ID 協議名
QQ安全中心 com.tencent.QQ-Mobile QQMobileToken wx68451b483ebd18ce
Todoist com.todoist.ios Todoist db-o8lsvx1nvnswy6q
阿里小號 cn.aliqin.KB KB wxe39210a97e3a9c10
借貸寶 com.renrenxing.JDB JDBClient wxbae9446f8aeb25d5
天天基金網 com.eastmoney.jijin EMProjJijin wx4654ffed0376f250
惠惠購物助手 cn.huihui.deals deals wx5ee450e46e396fd1
賺客幫 com.qixiao.zkbios13 ZhuangKeBang wx3fd85989fa215ecc


=================================

// app名稱
 NSString *app_Name = [infoDictionary objectForKey:@"CFBundleDisplayName"];
 
// app版本
 NSString *app_Version = [infoDictionary objectForKey:@"CFBundleShortVersionString"];
 
 // app build版本
 NSString *app_build = [infoDictionary objectForKey:@"CFBundleVersion"];


```
##所有欄位詳細說明
```
{
    BuildMachineOSBuild = 15B42;
    CFBundleDevelopmentRegion = ***;       //所屬地區
    CFBundleExecutable = **;
    CFBundleIdentifier = "com.***.***";    //包名
    CFBundleInfoDictionaryVersion = "6.0";
    CFBundleInfoPlistURL = "xxxxx";        //infoPlist 地址
    CFBundleName = "xxxxx";                //app名字
    CFBundleNumericVersion = 16809984;
    CFBundlePackageType = APPL;
    CFBundleShortVersionString = "1.0";
    CFBundleSignature = "????";
    CFBundleSupportedPlatforms =     (
        iPhoneOS
    );
    CFBundleVersion = "1.0";
    DTCompiler = "com.apple.compilers.llvm.clang.1_0";
    DTPlatformBuild = 13B137;
    DTPlatformName = iphoneos;
    DTPlatformVersion = "9.1";
    DTSDKBuild = 13B137;
    DTSDKName = "iphoneos9.1";
    DTXcode = 0711;
    DTXcodeBuild = 7B1005;
    LSApplicationQueriesSchemes =     (
        wechat,
        weixin,
        weibosdk,
        mqqapi,
        mqqbrowser,
        mqqopensdkapiV2,
        mqq,
        mttbrowser,
        taobao
    );
    LSRequiresIPhoneOS = 1;
    MinimumOSVersion = "7.0";
    NSAppTransportSecurity =     {
        NSAllowsArbitraryLoads = 1;
    };
    UIDeviceFamily =     (
        1,
        2
    );
    //開機啟動畫面
    UILaunchImages =     (
                {
            UILaunchImageMinimumOSVersion = "8.0";
            UILaunchImageName = "boluomiLaunch-800-Portrait-736h";
            UILaunchImageOrientation = Portrait;
            UILaunchImageSize = "{414, 736}";
        },
                {
            UILaunchImageMinimumOSVersion = "8.0";
            UILaunchImageName = "boluomiLaunch-800-667h";
            UILaunchImageOrientation = Portrait;
            UILaunchImageSize = "{375, 667}";
        },
                {
            UILaunchImageMinimumOSVersion = "7.0";
            UILaunchImageName = "boluomiLaunch-700";
            UILaunchImageOrientation = Portrait;
            UILaunchImageSize = "{320, 480}";
        },
                {
            UILaunchImageMinimumOSVersion = "7.0";
            UILaunchImageName = "boluomiLaunch-700-568h";
            UILaunchImageOrientation = Portrait;
            UILaunchImageSize = "{320, 568}";
        },
                {
            UILaunchImageMinimumOSVersion = "7.0";
            UILaunchImageName = "boluomiLaunch-700-Portrait";
            UILaunchImageOrientation = Portrait;
            UILaunchImageSize = "{768, 1024}";
        }
    );
    UIRequiredDeviceCapabilities =     (
        armv7
    );
    UIRequiresFullScreen = 1;
    UIStatusBarStyle = UIStatusBarStyleLightContent;
    UISupportedInterfaceOrientations =     (
        UIInterfaceOrientationPortrait
    );
}
```




相關文章