From 31aeec6b386e6d18a4117e06b077bc9fe7e9a5a6 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 a3054acf..e85fa870 100644 --- a/AltStore/Settings/SettingsViewController.swift +++ b/AltStore/Settings/SettingsViewController.swift @@ -132,7 +132,12 @@ final 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