xctool: codesign all libraries.
Closes #6736. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
parent
901373ca32
commit
0a2ffde607
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue