Apply Xcode 26.0 recommendations (#7823)

Also sets compatibilityVersion to Xcode 12.0.
Now 'natively' supports BuildIndependentTargetsInParallel option.
No more pain with this line being removed every time Xcode project
touched.
This commit is contained in:
Dzmitry Neviadomski
2025-11-18 05:07:55 +03:00
committed by GitHub
parent 4d8a1e5e78
commit 84cc06c651
2 changed files with 12 additions and 8 deletions

View File

@@ -3,7 +3,7 @@
archiveVersion = 1; archiveVersion = 1;
classes = { classes = {
}; };
objectVersion = 51; objectVersion = 54;
objects = { objects = {
/* Begin PBXBuildFile section */ /* Begin PBXBuildFile section */
@@ -3155,7 +3155,7 @@
isa = PBXProject; isa = PBXProject;
attributes = { attributes = {
BuildIndependentTargetsInParallel = YES; BuildIndependentTargetsInParallel = YES;
LastUpgradeCheck = 1530; LastUpgradeCheck = 2610;
ORGANIZATIONNAME = "The Transmission Project"; ORGANIZATIONNAME = "The Transmission Project";
TargetAttributes = { TargetAttributes = {
8D1107260486CEB800E47090 = { 8D1107260486CEB800E47090 = {
@@ -3180,7 +3180,7 @@
}; };
}; };
buildConfigurationList = 4DF0C59A089918A300DD8943 /* Build configuration list for PBXProject "Transmission" */; buildConfigurationList = 4DF0C59A089918A300DD8943 /* Build configuration list for PBXProject "Transmission" */;
compatibilityVersion = "Xcode 10.0"; compatibilityVersion = "Xcode 12.0";
developmentRegion = en; developmentRegion = en;
hasScannedForEncodings = 1; hasScannedForEncodings = 1;
knownRegions = ( knownRegions = (

View File

@@ -65,13 +65,17 @@ if ! find_cfiles -exec "${clang_format_exe}" $clang_format_args '{}' '+'; then
exitcode=1 exitcode=1
fi fi
# format Xcodeproj # check important compatibility constraints in Xcode project
if ! grep -q 'objectVersion = 51' Transmission.xcodeproj/project.pbxproj; then if ! grep -q 'objectVersion = 54;' Transmission.xcodeproj/project.pbxproj; then
echo 'project.pbxproj needs objectVersion = 51 for compatibility with Xcode 11' echo "project.pbxproj needs 'objectVersion = 54;' for compatibility with Xcode 12"
exitcode=1 exitcode=1
fi fi
if ! grep -q 'BuildIndependentTargetsInParallel = YES' Transmission.xcodeproj/project.pbxproj; then if ! grep -q 'compatibilityVersion = "Xcode 12.0";' Transmission.xcodeproj/project.pbxproj; then
echo 'please keep BuildIndependentTargetsInParallel in project.pbxproj' echo "project.pbxproj needs 'compatibilityVersion = \"Xcode 12.0\";' for compatibility with Xcode 12"
exitcode=1
fi
if ! grep -q 'BuildIndependentTargetsInParallel = YES;' Transmission.xcodeproj/project.pbxproj; then
echo "please keep 'BuildIndependentTargetsInParallel = YES;' line in project.pbxproj for faster builds"
exitcode=1 exitcode=1
fi fi