From eb80b59e3daec9e27b1d05dc063d1131e4feb2ec Mon Sep 17 00:00:00 2001 From: Riley Testut Date: Fri, 8 Dec 2023 18:48:17 -0600 Subject: [PATCH] Actually shows AltStore build version in Settings for BETA builds --- AltStore/Settings/SettingsViewController.swift | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/AltStore/Settings/SettingsViewController.swift b/AltStore/Settings/SettingsViewController.swift index 88329e23..e526856e 100644 --- a/AltStore/Settings/SettingsViewController.swift +++ b/AltStore/Settings/SettingsViewController.swift @@ -107,7 +107,12 @@ class SettingsViewController: UITableViewController { #if BETA // Only show build version for BETA builds. - let localizedVersion = installedApp.localizedVersion + let localizedVersion = if let bundleVersion = Bundle.main.object(forInfoDictionaryKey: kCFBundleVersionKey as String) as? String { + "\(installedApp.version) (\(bundleVersion))" + } + else { + installedApp.localizedVersion + } #else let localizedVersion = installedApp.version #endif