diff --git a/Whisky.xcodeproj/project.pbxproj b/Whisky.xcodeproj/project.pbxproj index b69cb40ba..807e34987 100644 --- a/Whisky.xcodeproj/project.pbxproj +++ b/Whisky.xcodeproj/project.pbxproj @@ -654,7 +654,6 @@ isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; - ARCHS = arm64; CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; CLANG_ANALYZER_NONNULL = YES; CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; @@ -718,7 +717,6 @@ isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; - ARCHS = arm64; CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; CLANG_ANALYZER_NONNULL = YES; CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; @@ -774,7 +772,6 @@ 6E40497829CCA19D006E3F1B /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { - ARCHS = arm64; ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; CODE_SIGN_ENTITLEMENTS = Whisky/Whisky.entitlements; @@ -813,7 +810,6 @@ 6E40497929CCA19D006E3F1B /* Release */ = { isa = XCBuildConfiguration; buildSettings = { - ARCHS = arm64; ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; CODE_SIGN_ENTITLEMENTS = Whisky/Whisky.entitlements; @@ -853,7 +849,6 @@ 6E70A49C2A9A2197007799E9 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { - ARCHS = arm64; ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; "CODE_SIGN_IDENTITY[sdk=macosx*]" = "Developer ID Application"; CODE_SIGN_STYLE = Manual; @@ -880,7 +875,6 @@ 6E70A49D2A9A2197007799E9 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { - ARCHS = arm64; ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; "CODE_SIGN_IDENTITY[sdk=macosx*]" = "Developer ID Application"; CODE_SIGN_STYLE = Manual; diff --git a/WhiskyKit/Sources/WhiskyKit/Utils/Rosetta2.swift b/WhiskyKit/Sources/WhiskyKit/Utils/Rosetta2.swift index feff48723..25aa124d4 100644 --- a/WhiskyKit/Sources/WhiskyKit/Utils/Rosetta2.swift +++ b/WhiskyKit/Sources/WhiskyKit/Utils/Rosetta2.swift @@ -23,7 +23,11 @@ public class Rosetta2 { private static let rosetta2RuntimeBin = "/Library/Apple/usr/libexec/oah/libRosettaRuntime" public static let isRosettaInstalled: Bool = { + #if arch(arm64) return FileManager.default.fileExists(atPath: rosetta2RuntimeBin) + #else // Intel + return true + #endif }() public static func installRosetta() async throws -> Bool {