From 097940026ec2b9412bc127a4ca327a67ddee65d5 Mon Sep 17 00:00:00 2001 From: "Bat.bat" <45396585+williambj1@users.noreply.github.com> Date: Sun, 4 Jul 2021 01:53:35 +0800 Subject: [PATCH] Fix retrieving version from project files that contain `MODULE VERSION` inheritance --- Hackintool/AppDelegate.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Hackintool/AppDelegate.m b/Hackintool/AppDelegate.m index 1e515dce..e35278a7 100644 --- a/Hackintool/AppDelegate.m +++ b/Hackintool/AppDelegate.m @@ -3051,7 +3051,7 @@ - (bool)tryGetProjectFileVersion:(NSString *)projectFileName projectVersion:(NSS { *projectVersion = [buildSettingsDictionary objectForKey:@"MODULE_VERSION"]; - if (*projectVersion == nil || [*projectVersion isEqualToString:@"$(CURRENT_PROJECT_VERSION)"] || [*projectVersion isEqualToString:@"$CURRENT_PROJECT_VERSION"]) + if (*projectVersion == nil || [*projectVersion isEqualToString:@"$(CURRENT_PROJECT_VERSION)"] || [*projectVersion isEqualToString:@"$CURRENT_PROJECT_VERSION"] || [*projectVersion isEqualToString:@"$(MODULE_VERSION)"] || [*projectVersion isEqualToString:@"$MODULE_VERSION"]) continue; }