From e45e2ee48e8493287878849b86427bf2ce96b5a5 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Fri, 15 May 2026 09:23:17 -0700
Subject: [PATCH] test-versioning.sh: check Xcode project MARKETING_VERSION
(cherry picked from commit c4a94c4c5754968396d83b08d1438aea565058a6)
---
build-scripts/test-versioning.sh | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/build-scripts/test-versioning.sh b/build-scripts/test-versioning.sh
index 36ea3c55..42332ebd 100755
--- a/build-scripts/test-versioning.sh
+++ b/build-scripts/test-versioning.sh
@@ -93,6 +93,17 @@ else
not_ok "Info-Framework.plist CFBundleVersion $version disagrees with SDL_ttf.h $ref_version"
fi
+marketing=$(sed -Ene 's/.*MARKETING_VERSION = (.*);/\1/p' Xcode/SDL_ttf.xcodeproj/project.pbxproj)
+
+ref="$ref_version
+$ref_version"
+
+if [ "$ref" = "$marketing" ]; then
+ ok "project.pbxproj MARKETING_VERSION is consistent"
+else
+ not_ok "project.pbxproj MARKETING_VERSION is inconsistent, expected $ref, got $marketing"
+fi
+
# For simplicity this assumes we'll never break ABI before SDL 3.
dylib_compat=$(sed -Ene 's/.*DYLIB_COMPATIBILITY_VERSION = (.*);$/\1/p' Xcode/SDL_ttf.xcodeproj/project.pbxproj)