查看bundleId和info.plist文件内容
来源:互联网 发布:360手机代工厂 知乎 编辑:程序博客网 时间:2024/05/25 08:14
/******** OC ********/ // 提取infoplist NSDictionary * info = [NSBundle mainBundle].infoDictionary; // 提取bundleID NSString * bundleID = [NSBundle mainBundle].bundleIdentifier;
/******** C *********/ CFDictionaryRef info = CFBundleGetInfoDictionary(CFBundleGetMainBundle()); CFStringRef bundleId = CFBundleGetIdentifier(CFBundleGetMainBundle());
// 打印所有infoplist文件内容 let info:[String:AnyObject] = NSBundle.mainBundle().infoDictionary! print(info) // 提取bundleID let bundleId = NSBundle.mainBundle().bundleIdentifier print(bundleId)
如下为新建的Xcode临时工程里面的infoPlist文件的东西
当然如果向infoplist文件中新添加一些新的配置,添加的配置同样能够打印出来
["DTSDKName": iphoneos9.2, "CFBundleSupportedPlatforms": ( iPhoneOS), "CFBundleIdentifier": com.ebeijia.tmp, "UIMainStoryboardFile": Main, "CFBundleNumericVersion": 16809984, "CFBundleShortVersionString": 1.0, "BuildMachineOSBuild": 15D21, "UILaunchStoryboardName": LaunchScreen, "DTCompiler": com.apple.compilers.llvm.clang.1_0, "DTXcodeBuild": 7C1002, "LSRequiresIPhoneOS": 1, "UISupportedInterfaceOrientations": ( UIInterfaceOrientationPortrait, UIInterfaceOrientationLandscapeLeft, UIInterfaceOrientationLandscapeRight), "DTPlatformBuild": 13C75, "CFBundleVersion": 1, "UIRequiredDeviceCapabilities": ( arm64), "DTPlatformVersion": 9.2, "CFBundleName": tmp, "DTSDKBuild": 13C75, "CFBundleInfoDictionaryVersion": 6.0, "DTPlatformName": iphoneos, "CFBundleSignature": ????, "CFBundlePackageType": APPL, "UIDeviceFamily": ( 1), "CFBundleExecutable": tmp, "DTXcode": 0721, "CFBundleInfoPlistURL": Info.plist -- file:///var/mobile/Containers/Bundle/Application/F8DD872B-6926-490D-A0AF-A62ACBE65B19/tmp.app/, "MinimumOSVersion": 9.2, "CFBundleDevelopmentRegion": en]
0 0
- 查看bundleId和info.plist文件内容
- Info.plist 和 pch 文件
- Info.plist 文件 和pch文件
- Info.plist和pch文件简介
- Info.plist和pch文件的作用
- Info.plist文件介绍和常见属性
- info.plist文件错误
- iOS Info.plist文件
- iOS info.plist文件
- 获取info.plist文件
- Info.plist文件简介
- 读取Info.plist中的内容
- PrefixHeader.pch 文件和info.plist文件路径问题
- iOS中pch文件和info.plist文件的作用
- ios-info.plist文件和pch文件的一些介绍
- iOS开发的Info.plist和pch文件
- iPhone中的info.plist文件
- iPhone中的info.plist文件
- Binder学习资料整理
- 网络与线程编程(第八节:查询机制)
- setNeedsDisplay和setNeedsLayout
- Oracle树查询及函数
- 关于fragmentPagerAdapter的冲突问题
- 查看bundleId和info.plist文件内容
- 每日一命令(10)cat (concatenate files and print on the standard output)
- hibernate 调用存储过程
- Subline Text 3注册码
- VB.net学习笔记(三十)认识线程池
- ios学习路线—Objective-C(NSObject)
- XMLHTTPRequest状态status完整列表
- OC中的位移枚举
- 【Android】30、常见控件的使用方法——ImageView