xctool: codesign all libraries.

Closes #6736.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Aleksey Kononov 2016-11-08 10:46:34 -08:00 committed by Mike McQuaid
parent 901373ca32
commit 0a2ffde607

View file

@ -19,6 +19,14 @@ class Xctool < Formula
bin.install_symlink "#{libexec}/bin/xctool" bin.install_symlink "#{libexec}/bin/xctool"
end end
def post_install
# all libraries need to be signed to avoid codesign errors when
# injecting them into xcodebuild or Simulator.app.
Dir.glob("#{libexec}/lib/*.dylib") do |lib_file|
system "/usr/bin/codesign", "-f", "-s", "-", lib_file
end
end
test do test do
system "(#{bin}/xctool -help; true)" system "(#{bin}/xctool -help; true)"
end end