获取info.plist的信息的代码

 NSString *CurPath = [[NSBundle mainBundle] bundlePath];

NSString *xmlPath = [CurPath stringByAppendingPathComponent:@"/Contents/Info.plist"];

NSMutableDictionary* dict = [[ NSMutableDictionary alloc ] initWithContentsOfFile:xmlPath];

NSString* Ver = [dict objectForKey:@"CFBundleShortVersionString"];

 NSDictionary * info = [[NSBundle mainBundle] infoDictionary];

    [self.window setTitle:[info objectForKey:(NSString *)kCFBundleExecutableKey]];

原文地址:https://www.cnblogs.com/PJXWang/p/5816618.html