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
This commit is contained in:
Robert McGovern 2021-07-05 19:44:08 +01:00
parent 5f628ee106
commit d46c9ee32a
1 changed files with 5 additions and 3 deletions

View File

@ -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;
};