From d46c9ee32a3b6012f4987f8ef4868a919f75125a Mon Sep 17 00:00:00 2001 From: Robert McGovern Date: Mon, 5 Jul 2021 19:44:08 +0100 Subject: [PATCH] minor tweak per https://stackoverflow.com/a/65043277 to allow it to build on an M1 mac, for Intel / Rosetta. Add Excluded_ARCHS for arm64 Add ONLY_ACTIVE_ARCH = NO Remove VALID_ARCHS line --- QuietUnrar.xcodeproj/project.pbxproj | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/QuietUnrar.xcodeproj/project.pbxproj b/QuietUnrar.xcodeproj/project.pbxproj index c9a4136..4af0a6a 100644 --- a/QuietUnrar.xcodeproj/project.pbxproj +++ b/QuietUnrar.xcodeproj/project.pbxproj @@ -624,6 +624,7 @@ "$(inherited)", "\"$(SRCROOT)/libunrar\"", ); + ONLY_ACTIVE_ARCH = NO; PRODUCT_BUNDLE_IDENTIFIER = net.tarasis.mac.QuietUnarchiver; PRODUCT_NAME = QuietUnrar; }; @@ -685,6 +686,7 @@ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; ENABLE_STRICT_OBJC_MSGSEND = YES; ENABLE_TESTABILITY = YES; + EXCLUDED_ARCHS = arm64; GCC_C_LANGUAGE_STANDARD = gnu99; GCC_NO_COMMON_BLOCKS = YES; GCC_OPTIMIZATION_LEVEL = 0; @@ -696,9 +698,8 @@ GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; MACOSX_DEPLOYMENT_TARGET = 10.15; - ONLY_ACTIVE_ARCH = YES; + ONLY_ACTIVE_ARCH = NO; SDKROOT = macosx; - VALID_ARCHS = "arm64 arm64e i386 x86_64"; }; name = Debug; }; @@ -725,6 +726,7 @@ CLANG_WARN_UNREACHABLE_CODE = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; ENABLE_STRICT_OBJC_MSGSEND = YES; + EXCLUDED_ARCHS = arm64; GCC_C_LANGUAGE_STANDARD = gnu99; GCC_NO_COMMON_BLOCKS = YES; GCC_VERSION = com.apple.compilers.llvm.clang.1_0; @@ -736,7 +738,6 @@ GCC_WARN_UNUSED_VARIABLE = YES; MACOSX_DEPLOYMENT_TARGET = 10.15; SDKROOT = macosx; - VALID_ARCHS = "arm64 arm64e i386 x86_64"; }; name = Release; }; @@ -747,6 +748,7 @@ COPY_PHASE_STRIP = NO; GCC_DYNAMIC_NO_PIC = NO; GCC_OPTIMIZATION_LEVEL = 0; + ONLY_ACTIVE_ARCH = NO; PRODUCT_NAME = libunrar; SDKROOT = macosx; };