Skip to content

Commit d38c308

Browse files
committed
Remove CONFIGURATION_BUILD_DIR from macOS Xcode project
If this is set, SPM doesn't work because it tries to build the SPM lib in a /$(CONFIGURATION subfolder. This change means that the binaries get built in a "Debug/Release" subfolder. Build/Installer scripts are updated accordingly
1 parent 4af0c83 commit d38c308

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

TemplateProject/projects/TemplateProject-macOS.xcodeproj/project.pbxproj

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2616,7 +2616,6 @@
26162616
CLANG_WARN_SUSPICIOUS_MOVE = YES;
26172617
CLANG_WARN_UNREACHABLE_CODE = YES;
26182618
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
2619-
CONFIGURATION_BUILD_DIR = "$(BUILD_DIR)";
26202619
COPY_PHASE_STRIP = NO;
26212620
DEAD_CODE_STRIPPING = YES;
26222621
DEPLOYMENT_LOCATION = YES;
@@ -2696,7 +2695,6 @@
26962695
CLANG_WARN_SUSPICIOUS_MOVE = YES;
26972696
CLANG_WARN_UNREACHABLE_CODE = YES;
26982697
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
2699-
CONFIGURATION_BUILD_DIR = "$(BUILD_DIR)";
27002698
DEAD_CODE_STRIPPING = YES;
27012699
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
27022700
DEPLOYMENT_LOCATION = YES;
@@ -3807,7 +3805,6 @@
38073805
CLANG_WARN_SUSPICIOUS_MOVE = YES;
38083806
CLANG_WARN_UNREACHABLE_CODE = YES;
38093807
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
3810-
CONFIGURATION_BUILD_DIR = "$(BUILD_DIR)";
38113808
DEAD_CODE_STRIPPING = YES;
38123809
DEPLOYMENT_LOCATION = YES;
38133810
DEVELOPMENT_TEAM = "$(DEVELOPMENT_TEAM)";

TemplateProject/scripts/makedist-mac.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -352,11 +352,11 @@ fi
352352

353353
#---------------------------------------------------------------------------------------------------------
354354
# dSYMs
355-
sudo rm -R -f build-mac/*-dSYMs.zip
355+
sudo rm -R -f build-mac/Release/*-dSYMs.zip
356356

357357
echo "packaging dSYMs"
358358
echo ""
359-
zip -r ./build-mac/$ARCHIVE_NAME-dSYMs.zip ./build-mac/*.dSYM
359+
zip -r ./build-mac/$ARCHIVE_NAME-dSYMs.zip ./build-mac/Release/*.dSYM
360360

361361
#---------------------------------------------------------------------------------------------------------
362362

TemplateProject/scripts/makeinstaller-mac.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ fi
2929
PRODUCT_NAME=TemplateProject
3030

3131
# locations
32-
PRODUCTS="build-mac"
32+
PRODUCTS="build-mac/Release"
3333

3434
VST2="${PRODUCT_NAME}.vst"
3535
VST3="${PRODUCT_NAME}.vst3"

0 commit comments

Comments
 (0)