From 542694728ca63007430f0bfa369a941669c5351d Mon Sep 17 00:00:00 2001 From: Carlo Cabrera <30379873+carlocab@users.noreply.github.com> Date: Sun, 25 Jul 2021 23:21:26 +0800 Subject: [PATCH] codesign binaries on ARM --- Library/Homebrew/formula.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index aa2533de0f..d2f81510d4 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -1605,6 +1605,7 @@ class Formula macho = MachO::FatFile.new(file) native_slice = macho.extract(Hardware::CPU.arch) native_slice.write file + MachO.codesign! file if Hardware::CPU.arm? rescue MachO::MachOBinaryError onoe "#{file} is not a universal binary" raise