获取应用的当前版本号

let versionText = Bundle.main.infoDictionary!["CFBundleShortVersionString"] as! String