Use this bundle file to configure your project's version ID, etc. This will be visible in your App Settings.
Just drag this folder inside your project and add the code below to App Delegate's didFinishLaunchingWithOptions
If you're not seeing your app's version number or whatever option you've set, you must shut off and on your iPhone. Apple fails...
The string "appVersion" is defined in a .plist file inside Settings file. You can change it for whatever string you like, and add more features, for example to show more info, or actions.
- (void)settingAppVersion{
NSString * appVersionString = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleShortVersionString"];
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
[defaults setValue:appVersionString forKey:@"appVersion"];
[defaults synchronize];
}
func settingAppVersion() {
let appVersionString = Bundle.main.object(forInfoDictionaryKey: "CFBundleShortVersionString") as? String
let defaults = UserDefaults.standard
defaults.setValue(appVersionString, forKey: "appVersion")
defaults.synchronize()
}