[NSBundle mainBundle] infoDictionary
2017-02-18 11:17
465 查看
[NSBundle mainBundle] infoDictionary获取到的是当前程序的信息,通过控制台打印出下面这些信息
{
BuildMachineOSBuild = 16B2657; //mac 版本
CFBundleDevelopmentRegion = en; //本地化设置,默认为en
CFBundleExecutable = UpdateTip; //安装包名称
CFBundleIdentifier = “com.hcb.UpdateTip”; //bundle id
CFBundleInfoDictionaryVersion = “6.0”; //info.plist格式化版本号
CFBundleName = UpdateTip; //程序名称
CFBundleNumericVersion = 16809984; //bundle版本
CFBundlePackageType = APPL; //包类型
CFBundleShortVersionString = “1.0”; //版本号
CFBundleSupportedPlatforms = (
iPhoneSimulator
); //支持的平台
CFBundleVersion = 1; //版本号
DTCompiler = “com.apple.compilers.llvm.clang.1_0”;
DTPlatformBuild = “”; //运行平台
DTPlatformName = iphonesimulator; //当前运行平台名称
DTPlatformVersion = “10.2”; //平台版本
DTSDKBuild = 14C89; //模拟器系统版本
DTSDKName = “iphonesimulator10.2”; //模拟器系统名称
DTXcode = 0821; //xcode
DTXcodeBuild = 8C1002; //xcode版本
LSRequiresIPhoneOS = 1; //是否只运行在iphone中
MinimumOSVersion = “8.0”;//支持最低系统版本
UIDeviceFamily = (
1
);
UILaunchStoryboardName = LaunchScreen;
UIMainStoryboardFile = Main; //MainStoryboard文件
UIRequiredDeviceCapabilities = (
armv7
); //针对哪些指令集进行编译
UISupportedInterfaceOrientations = (
UIInterfaceOrientationPortrait,
UIInterfaceOrientationLandscapeLeft,
UIInterfaceOrientationLandscapeRight
); //支持屏幕旋转方向
}
{
BuildMachineOSBuild = 16B2657; //mac 版本
CFBundleDevelopmentRegion = en; //本地化设置,默认为en
CFBundleExecutable = UpdateTip; //安装包名称
CFBundleIdentifier = “com.hcb.UpdateTip”; //bundle id
CFBundleInfoDictionaryVersion = “6.0”; //info.plist格式化版本号
CFBundleName = UpdateTip; //程序名称
CFBundleNumericVersion = 16809984; //bundle版本
CFBundlePackageType = APPL; //包类型
CFBundleShortVersionString = “1.0”; //版本号
CFBundleSupportedPlatforms = (
iPhoneSimulator
); //支持的平台
CFBundleVersion = 1; //版本号
DTCompiler = “com.apple.compilers.llvm.clang.1_0”;
DTPlatformBuild = “”; //运行平台
DTPlatformName = iphonesimulator; //当前运行平台名称
DTPlatformVersion = “10.2”; //平台版本
DTSDKBuild = 14C89; //模拟器系统版本
DTSDKName = “iphonesimulator10.2”; //模拟器系统名称
DTXcode = 0821; //xcode
DTXcodeBuild = 8C1002; //xcode版本
LSRequiresIPhoneOS = 1; //是否只运行在iphone中
MinimumOSVersion = “8.0”;//支持最低系统版本
UIDeviceFamily = (
1
);
UILaunchStoryboardName = LaunchScreen;
UIMainStoryboardFile = Main; //MainStoryboard文件
UIRequiredDeviceCapabilities = (
armv7
); //针对哪些指令集进行编译
UISupportedInterfaceOrientations = (
UIInterfaceOrientationPortrait,
UIInterfaceOrientationLandscapeLeft,
UIInterfaceOrientationLandscapeRight
); //支持屏幕旋转方向
}
相关文章推荐
- [NSBundle mainBundle] infoDictionary获取到的当前程序的信息
- [[NSBundle mainBundle] infoDictionary]
- 关于[[NSBundle mainBundle] infoDictionary]里面的那些东西
- IOS开发: NSDictionary *infoDictionary = [[NSBundle mainBundle] infoDictionary]
- [[NSBundle mainBundle] infoDictionary]
- InfoPlist.plist 中[NSBundle mainBundle].infoDictionary 所有信息
- IOS开发之 [[NSBundle mainBundle] infoDictionary]
- [[NSBundle mainBundle] infoDictionary]
- 获取版本号[[NSBundle mainBundle] infoDictionary]
- 获取版本号[[NSBundle mainBundle] infoDictionary]
- 深入理解 [NSBundle mainBundle]
- 删除storyboard之后出现Could not find a storyboard named 'Main' in bundle NSBundle这种现象
- iOS开发-Could not find a storyboard named 'Main' in bundle NSBundle
- 解决Could not find a storyboard named 'MainStoryBoard' in bundle NSBundle
- 关于[[NSBundle mainBundle] pathForResource:@"name" ofType:@"type"]找不到指定文件的解决办法
- NSBundle的使用,注意mainBundle和Custom Bundle的区别
- [[NSBundle mainBundle]pathForResource:@"XXX" ofType:@"db"]为nil的解决办法
- [NSBundle mainBundle] 详解
- NSBundle 的理解和 mainBundle 类方法的详解
- iOS [[NSBundle mainBundle] pathForResource:@"" ofType:@""]无法获取到文件