获取info.plist文件
获取ipa的安装包,可以通过iTools导出手机中已安装App的ipa包。导出ipa包后将后缀“.ipa”改成“.zip”并解压。在解压的文件找到info.plist文件。
打开info.plist文件
windows下需要安装一个plist文件编辑器: plist edit下载地址:http://download.cnet.com/Plist-Editor/3000-2141_4-10909598.html下载plist edit并安装然后之前找到的info.plist文件图标会变成一个黄色图标,双击打开。
获取包名、进程ID、协议名
在plist edit中可以通过ctrl+f查找一下信息。
CFBundleIdentifier包名CFBundleExecutable 进程idCFBundleName(一般和进程id是一样的,然后同info.plist文件中会有一个和进程id名的文件)CFBundleURLTypes 协议 (一般有多个)用来唤起APP,暂时还没有使用到
举例参考
应用名称包名进程ID协议名QQ安全中心com.tencent.QQ-MobileQQMobileTokenwx68451b483ebd18ceTodoistcom.todoist.iosTodoistdb-o8lsvx1nvnswy6q阿里小号cn.aliqin.KBKBwxe39210a97e3a9c10借贷宝com.renrenxing.JDBJDBClientwxbae9446f8aeb25d5天天基金网com.eastmoney.jijinEMProjJijinwx4654ffed0376f250惠惠购物助手cn.huihui.dealsdealswx5ee450e46e396fd1赚客帮com.qixiao.zkbios13ZhuangKeBangwx3fd85989fa215ecc
=================================
// 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 ); } ```
|