Uninstall Mac apps with every file they leave behind, and see why each belongs. Free up space, fine-tune macOS, and set up Terminal.
Swift cache-cleanercleanerclideveloper-toolsdisk-cleanupdisk-spaceduplicate-finderhomebrewliquid-glassmac-cleanermacosmacos-appmacos-golden-gatemacos-tahoemacos-tweaksswiftswiftuiterminal-themesuninstalluninstaller
List in Intel Software a universal app that asks to open as Intel
Țugui Dragoș87a2482a1d98
diff --git a/GUIDE.md b/GUIDE.mdindex af6773bf..33888e54 100644--- a/GUIDE.md+++ b/GUIDE.md@@ -253,8 +253,9 @@ and how many items the others hold.package: what is left to Finder or to the maker's uninstaller stays where it is, and what may exist only on this Macis shown and not selected.- **Intel Software:** what still needs Rosetta, which macOS 27 is the last release to offer for most Intel software:- apps, the Intel-only parts inside other apps, plug-ins, drivers, background items, and the commands in- `/usr/local`. It names any folder or program it couldn't read, since something there may need Rosetta too.+ apps, apps built for both that ask macOS to open them as Intel, the Intel-only parts inside other apps, plug-ins,+ drivers, background items, and the commands in `/usr/local`. It names any folder or program it couldn't read,+ since something there may need Rosetta too.- **Homebrew:** your formulae and casks, with Update, Clean Up (and two deeper ones: downloads older than 30 days, orevery download), Repair Taps, Check Health, Scan for Vulnerabilities, Upgrade, and Uninstall, or the command to run inTerminal for a cask that asks for an administrator's password. Uninstall and the cleanups delete for good, as Homebrewdiff --git a/Localization/Peel/Localizable.xcstrings b/Localization/Peel/Localizable.xcstringsindex 377f5ce1..2d8a22dc 100644--- a/Localization/Peel/Localizable.xcstrings+++ b/Localization/Peel/Localizable.xcstrings@@ -176605,6 +176605,113 @@}}},+ "The Intel-based Apps list in System Settings > General > About names the apps macOS 28 won’t run, including some outside the folders Peel looks in." : {+ "comment" : "On macOS 27, on the Intel Software page when Peel found nothing that needs Rosetta, above a button that opens System Settings. Intel-based Apps is the name of that list in System Settings: use your macOS's name for it.",+ "localizations" : {+ "cs" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Seznam „Aplikace pro procesory Intel“ v Nastavení systému > Obecné > Informace uvádí aplikace, které macOS 28 nespustí, včetně některých mimo složky, ve kterých Peel hledá."+ }+ },+ "de" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Die Liste „Intel-basierte Apps“ unter „Systemeinstellungen“ > „Allgemein“ > „Info“ nennt die Apps, die macOS 28 nicht ausführen wird, darunter auch einige außerhalb der Ordner, in denen Peel sucht."+ }+ },+ "es" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "La lista “Apps para Intel” de Ajustes del Sistema > General > Información indica las apps que macOS 28 no ejecutará, incluidas algunas que están fuera de las carpetas en las que busca Peel."+ }+ },+ "fr" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "La liste « Apps basées sur Intel », dans Réglages Système > Général > Informations, indique les apps que macOS 28 n’exécutera pas, y compris certaines qui se trouvent en dehors des dossiers que Peel examine."+ }+ },+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "L’elenco “App basate su Intel” in Impostazioni di Sistema > Generali > Informazioni indica le app che macOS 28 non eseguirà, comprese alcune che si trovano fuori dalle cartelle in cui Peel cerca."+ }+ },+ "ja" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "“システム設定”>“一般”>“情報”にある“Intelベースのアプリケーション”のリストに、macOS 28で実行できないアプリが表示されます。Peelが調べるフォルダの外にあるアプリも含まれます。"+ }+ },+ "ko" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "시스템 설정 > 일반 > 정보의 ‘Intel 기반 앱’ 목록에는 Peel이 살펴보는 폴더 밖에 있는 일부 앱을 포함하여 macOS 28에서 실행되지 않을 앱이 나와 있습니다."+ }+ },+ "nl" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "De lijst 'Op Intel gebaseerde apps' in Systeeminstellingen > Algemeen > Info noemt de apps die macOS 28 niet meer uitvoert, waaronder sommige buiten de mappen waarin Peel kijkt."+ }+ },+ "pl" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Lista „Aplikacje oparte na procesorze Intel” w Ustawieniach systemowych > Ogólne > Informacje wymienia aplikacje, których macOS 28 nie uruchomi, w tym niektóre spoza folderów, w których szuka Peel."+ }+ },+ "pt" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "A lista “Apps Baseados em Intel” em Ajustes do Sistema > Geral > Sobre mostra os apps que o macOS 28 não vai executar, inclusive alguns fora das pastas em que o Peel procura."+ }+ },+ "ro" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Lista „Aplicații bazate pe Intel” din Configurări sistem > General > Detalii enumeră aplicațiile pe care macOS 28 nu le va rula, inclusiv unele din afara dosarelor în care caută Peel."+ }+ },+ "ru" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "В списке «Приложения на базе Intel» в разделе «Системные настройки» > «Основные» > «Описание» перечислены приложения, которые macOS 28 не запустит, в том числе некоторые из тех, что находятся вне папок, в которых ищет Peel."+ }+ },+ "sv" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Listan ”Intel-baserade appar” i Systeminställningar > Allmänt > Om visar vilka appar macOS 28 inte kommer att köra, inklusive några som ligger utanför de mappar som Peel letar i."+ }+ },+ "tr" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Sistem Ayarları > Genel > Hakkında bölümündeki “Intel Tabanlı Uygulamalar” listesi, macOS 28’in çalıştırmayacağı uygulamaları gösterir; bunların arasında Peel’in baktığı klasörlerin dışındakiler de vardır."+ }+ },+ "uk" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Список «Програми на основі Intel» у розділі Системні параметри > Загальні > Інформація містить програми, які macOS 28 не запускатиме, зокрема деякі поза папками, у яких шукає Peel."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "“系统设置”>“通用”>“关于本机”中的“基于Intel的App”列表会列出macOS 28无法运行的App,其中也包括一些位于Peel不会查看的文件夹中的App。"+ }+ },+ "zh-Hant" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "「系統設定」>「一般」>「關於」中的「Intel架構式App」列表,會列出macOS 28無法執行的App,包括一些位於Peel所查看檔案夾以外的App。"+ }+ }+ }+ },"The Intel-based Apps list in System Settings > General > About names the apps macOS 28 won’t run. Peel also looks inside apps and at plug-ins and drivers, which that list may leave out." : {"localizations" : {"cs" : {@@ -188630,6 +188737,113 @@}}},+ "This app has a version for Apple silicon, but it asks macOS to open it as an Intel app, so it runs through Rosetta." : {+ "comment" : "On the page of an app in Intel Software whose Info.plist asks macOS to run its Intel code first. Rosetta is Apple's name and stays as it is.",+ "localizations" : {+ "cs" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Tato aplikace má verzi pro čipy Apple, ale žádá systém macOS, aby ji otevíral jako aplikaci pro Intel, takže běží v prostředí Rosetta."+ }+ },+ "de" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Diese App hat eine Version für Apple Chips, weist macOS aber an, sie als Intel-App zu öffnen, daher läuft sie mit Rosetta."+ }+ },+ "es" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Esta app tiene una versión compatible con el chip de Apple, pero le pide a macOS que la abra como una app para Intel, así que se ejecuta mediante Rosetta."+ }+ },+ "fr" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Cette app dispose d’une version pour puce Apple, mais elle demande à macOS de l’ouvrir en tant qu’app Intel : elle s’exécute donc avec Rosetta."+ }+ },+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Questa app ha una versione per Mac con chip Apple, ma chiede a macOS di aprirla come app Intel, quindi funziona tramite Rosetta."+ }+ },+ "ja" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "このアプリにはAppleシリコン用のバージョンがありますが、Intelプロセッサ用アプリとして開くようmacOSに要求しているため、Rosetta経由で動作します。"+ }+ },+ "ko" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "이 앱에는 Apple silicon용 버전이 있지만, macOS에 Intel 앱으로 열도록 요청하므로 Rosetta를 통해 실행됩니다."+ }+ },+ "nl" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Deze app heeft een versie voor Apple silicon, maar vraagt macOS om deze als Intel-app te openen, dus de app wordt via Rosetta uitgevoerd."+ }+ },+ "pl" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Ta aplikacja ma wersję dla układów scalonych Apple, ale prosi macOS o otwieranie jej jako aplikacji dla procesorów Intel, więc działa za pomocą Rosetty."+ }+ },+ "pt" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Este app tem uma versão para Apple silicon, mas pede ao macOS que o abra como um app Intel, então ele é executado pelo Rosetta."+ }+ },+ "ro" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Această aplicație are o versiune pentru Mac‑urile cu cip Apple, dar îi cere lui macOS să o deschidă ca aplicație Intel, așa că rulează prin Rosetta."+ }+ },+ "ru" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "У этого приложения есть версия для чипов Apple, но оно просит macOS открывать его как приложение для Intel, поэтому работает через Rosetta."+ }+ },+ "sv" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Den här appen har en version för Apple Silicon, men appen ber macOS att öppna den som en Intel-app, så den körs via Rosetta."+ }+ },+ "tr" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Bu uygulamanın Apple Silicon için bir sürümü var, ancak uygulama macOS’ten kendisini bir Intel uygulaması olarak açmasını istiyor, bu yüzden Rosetta ile çalışıyor."+ }+ },+ "uk" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Ця програма має версію для Apple Silicon, але просить macOS відкривати її як програму для Intel, тож вона працює через Rosetta."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "此App提供适用于Apple芯片的版本,但它要求macOS将其作为Intel App打开,因此会通过Rosetta运行。"+ }+ },+ "zh-Hant" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "此App有適用於Apple晶片的版本,但它要求macOS將它作為Intel App打開,因此它會透過Rosetta執行。"+ }+ }+ }+ },"This app is excluded" : {"localizations" : {"cs" : {diff --git a/Packages/PeelCore/Sources/PeelCore/Apps/AppInspector.swift b/Packages/PeelCore/Sources/PeelCore/Apps/AppInspector.swiftindex 63ddb355..62558426 100644--- a/Packages/PeelCore/Sources/PeelCore/Apps/AppInspector.swift+++ b/Packages/PeelCore/Sources/PeelCore/Apps/AppInspector.swift@@ -111,6 +111,7 @@ public enum AppInspector {applicationGroups: signing.applicationGroups,embeddedBundleIdentifiers: embeddedBundleIdentifiers(in: contents, isWrapped: layout.isWrapped),architectures: executable.flatMap(MachOHeader.architectures(ofExecutableAt:)) ?? [],+ asksForIntelFirst: (info["LSArchitecturePriority"] as? [String])?.first == "x86_64",isFromAppStore: isFromAppStore,isSystemProtected: isSystemProtected,enclosingPackage: url.enclosingPackage,diff --git a/Packages/PeelCore/Sources/PeelCore/Apps/InstalledApp.swift b/Packages/PeelCore/Sources/PeelCore/Apps/InstalledApp.swiftindex 45e18cd9..a15d4ec4 100644--- a/Packages/PeelCore/Sources/PeelCore/Apps/InstalledApp.swift+++ b/Packages/PeelCore/Sources/PeelCore/Apps/InstalledApp.swift@@ -16,6 +16,9 @@ public struct InstalledApp: Sendable, Hashable, Identifiable {public let applicationGroups: [String]public let embeddedBundleIdentifiers: [String]public let architectures: Set<Architecture>+ /// Whether its Info.plist puts Intel first in `LSArchitecturePriority`, so macOS runs a universal app under+ /// Rosetta on Apple silicon.+ public let asksForIntelFirst: Boolpublic let isFromAppStore: Boolpublic let isSystemProtected: Bool/// The package the app sits inside, such as the app it is a helper of. Moved alone, the app would be cut out@@ -62,6 +65,7 @@ public struct InstalledApp: Sendable, Hashable, Identifiable {applicationGroups: [String] = [],embeddedBundleIdentifiers: [String] = [],architectures: Set<Architecture> = [.arm64],+ asksForIntelFirst: Bool = false,isFromAppStore: Bool = false,isSystemProtected: Bool = false,enclosingPackage: URL? = nil,@@ -85,6 +89,7 @@ public struct InstalledApp: Sendable, Hashable, Identifiable {self.applicationGroups = applicationGroupsself.embeddedBundleIdentifiers = embeddedBundleIdentifiersself.architectures = architectures+ self.asksForIntelFirst = asksForIntelFirstself.isFromAppStore = isFromAppStoreself.isSystemProtected = isSystemProtectedself.enclosingPackage = enclosingPackage@@ -121,6 +126,9 @@ public struct InstalledApp: Sendable, Hashable, Identifiable {public var isIntelOnly: Bool { architectures == [.x86_64] }+ /// A universal app that still runs as Intel on Apple silicon, because its Info.plist asks for Intel first.+ public var prefersIntel: Bool { asksForIntelFirst && architectures.contains(.x86_64) && !isIntelOnly }+public var isFromSetapp: Bool { Self.isFromSetapp(at: url, identifier: bundleIdentifier) }/// Whether the app at `url` came from Setapp. Setapp's documentation says a bundle identifier "must use thediff --git a/Packages/PeelCore/Sources/PeelCore/Apps/IntelInspector.swift b/Packages/PeelCore/Sources/PeelCore/Apps/IntelInspector.swiftindex 4448d521..d94a61aa 100644--- a/Packages/PeelCore/Sources/PeelCore/Apps/IntelInspector.swift+++ b/Packages/PeelCore/Sources/PeelCore/Apps/IntelInspector.swift@@ -27,6 +27,8 @@ public struct IntelFinding: Sendable, Hashable, Identifiable {public var backgroundItems: [String] = []/// For a background item, its row on the Background Items page (`BackgroundItem.id`).public var job: BackgroundItem.ID?+ /// For an app, that it has a version for Apple silicon and asks macOS to open it as Intel (`prefersIntel`).+ public var prefersIntel = falsepublic var id: URL { url }}@@ -118,6 +120,7 @@ public enum IntelInspector {backgroundItems: BackgroundItems.Scan = BackgroundItems.Scan(),exclusions: Exclusions,environment: SearchEnvironment = .current,+ onAppleSilicon: Bool = HostArchitecture.isAppleSilicon,measure: @escaping FileSize.Measure) async -> IntelScan {// A path can be found twice: `/Library/Audio/Plug-Ins/HAL` is a plug-in folder and sits inside a driver@@ -134,13 +137,15 @@ public enum IntelInspector {let intelOnly = app.isIntelOnly|| app.architectures.isEmpty && isIntelOnly(bundle: app.url, unreadable: &unreadable)guard unreadable.count == refusedBefore else { continue }- if intelOnly, isNew(app.url) {+ let prefersIntel = onAppleSilicon && app.prefersIntel+ if intelOnly || prefersIntel, isNew(app.url) {findings.append(IntelFinding(url: app.url,kind: .app,name: app.name,owner: nil,size: nil,+ prefersIntel: !intelOnly && prefersIntel,))continue}diff --git a/Packages/PeelCore/Tests/PeelCoreTests/IntelInspectorTests.swift b/Packages/PeelCore/Tests/PeelCoreTests/IntelInspectorTests.swiftindex ddba814c..a2549fa0 100644--- a/Packages/PeelCore/Tests/PeelCoreTests/IntelInspectorTests.swift+++ b/Packages/PeelCore/Tests/PeelCoreTests/IntelInspectorTests.swift@@ -156,6 +156,39 @@ struct IntelInspectorTests {)}+ @Test func listsAUniversalAppThatAsksForIntelFirstOnlyOnAppleSilicon() async throws {+ let directory = try TemporaryDirectory()+ try directory.file(+ "Apps/Example.app/Contents/Info.plist",+ contents: PropertyListSerialization.data(+ fromPropertyList: ["CFBundleIdentifier": "org.example.first", "LSArchitecturePriority": ["x86_64", "arm64"]],+ format: .xml, options: 0+ )+ )+ let read = try #require(AppInspector.inspect(directory.url.appending(path: "Apps/Example.app")))+ #expect(read.asksForIntelFirst)+ let first = InstalledApp(+ url: read.url, bundleIdentifier: "org.example.first", name: "Example", architectures: [.arm64, .x86_64],+ asksForIntelFirst: true+ )+ let native = InstalledApp(+ url: directory.url.appending(path: "Apps/Native.app", directoryHint: .isDirectory),+ bundleIdentifier: "org.example.native", name: "Native", architectures: [.arm64, .x86_64]+ )++ let scan = await IntelInspector.scan(+ installedApps: [first, native], exclusions: .none, environment: environment(in: directory),+ onAppleSilicon: true, measure: { _ in 1 }+ )+ #expect(scan.findings(of: .app).map(\.url) == [first.url])+ #expect(scan.findings(of: .app).first?.prefersIntel == true)+ let onIntel = await IntelInspector.scan(+ installedApps: [first], exclusions: .none, environment: environment(in: directory), onAppleSilicon: false,+ measure: { _ in 1 }+ )+ #expect(onIntel.findings(of: .app).isEmpty)+ }+@Test func countsWhatItReadsForThePagesFigure() async throws {let directory = try TemporaryDirectory()for index in 1...3 {diff --git a/Peel/Model/IntelLibrary.swift b/Peel/Model/IntelLibrary.swiftindex b440beab..2f351198 100644--- a/Peel/Model/IntelLibrary.swift+++ b/Peel/Model/IntelLibrary.swift@@ -115,6 +115,9 @@ extension IntelFinding.Kind {extension IntelFinding {/// Explains the finding, a plug-in by where its Intel code can load (`Plugin.Category.intelHost`).func explanation(onAppleSilicon: Bool) -> LocalizedStringResource {+ if prefersIntel {+ return "This app has a version for Apple silicon, but it asks macOS to open it as an Intel app, so it runs through Rosetta."+ }guard onAppleSilicon, kind == .plugin else { return kind.explanation(onAppleSilicon: onAppleSilicon) }return switch pluginCategory?.intelHost {case .insideTheApp:diff --git a/Peel/Views/Intel/IntelList.swift b/Peel/Views/Intel/IntelList.swiftindex abb620c1..94b6d8f6 100644--- a/Peel/Views/Intel/IntelList.swift+++ b/Peel/Views/Intel/IntelList.swift@@ -57,13 +57,26 @@ struct IntelList: View {unreadActions}} else if intel.findings.isEmpty {- ContentUnavailableView(- "Nothing Needs Rosetta",- systemImage: "checkmark.seal",- // The description claims only what Peel looked at, since Intel plug-ins can be missed: the- // macOS 27 release notes say some may not appear even in System Settings.- description: Text("Nothing Peel looked at needs Rosetta: the apps, what they carry inside, the plug-ins, the drivers, the background items, and the tools in /usr/local.")- )+ if #available(macOS 27, *) {+ ContentUnavailableView {+ Label("Nothing Needs Rosetta", systemImage: "checkmark.seal")+ } description: {+ VStack(spacing: 6) {+ Text("Nothing Peel looked at needs Rosetta: the apps, what they carry inside, the plug-ins, the drivers, the background items, and the tools in /usr/local.")+ Text("The Intel-based Apps list in System Settings > General > About names the apps macOS 28 won’t run, including some outside the folders Peel looks in.")+ }+ } actions: {+ Button("Open System Settings") { NSWorkspace.shared.open(DeviceInfo.aboutURL) }+ }+ } else {+ ContentUnavailableView(+ "Nothing Needs Rosetta",+ systemImage: "checkmark.seal",+ // The description claims only what Peel looked at, since Intel plug-ins can be missed: the+ // macOS 27 release notes say some may not appear even in System Settings.+ description: Text("Nothing Peel looked at needs Rosetta: the apps, what they carry inside, the plug-ins, the drivers, the background items, and the tools in /usr/local.")+ )+ }}}.fadesInColumn(whenRowsChange: intel.scan?.findings.map(\.id))diff --git a/PeelTests/IntelExplanationTests.swift b/PeelTests/IntelExplanationTests.swiftindex e466fb75..bc441d6e 100644--- a/PeelTests/IntelExplanationTests.swift+++ b/PeelTests/IntelExplanationTests.swift@@ -22,6 +22,15 @@ struct IntelExplanationTests {#expect(String(localized: plugin(.vst3).explanation(onAppleSilicon: false)) == String(localized: "This plug-in is Intel only. On this Intel Mac it loads natively."))}+ @Test func saysWhyAUniversalAppStillRunsThroughRosetta() {+ let app = IntelFinding(+ url: URL(filePath: "/Applications/Example.app"), kind: .app, name: "Example", owner: nil, size: 10,+ prefersIntel: true+ )++ #expect(String(localized: app.explanation(onAppleSilicon: true)) == String(localized: "This app has a version for Apple silicon, but it asks macOS to open it as an Intel app, so it runs through Rosetta."))+ }+@Test func tellsAPlugInsFormatsApart() {let words = { (finding: IntelFinding) in finding.subtitle.map { String(localized: $0) } }