From 42adfc2d334a6c81fa575e42a3d46b49ec9c4054 Mon Sep 17 00:00:00 2001 From: Marc O'Morain Date: Wed, 26 Jun 2019 13:18:19 +0100 Subject: [PATCH] Use codesign to check bundle As suggested by @jazaval here https://github.com/xcpretty/xcode-install/issues/340#issuecomment-501053311 fixes #340 --- lib/xcode/install.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/xcode/install.rb b/lib/xcode/install.rb index 453c2bbf..c8bf04bf 100644 --- a/lib/xcode/install.rb +++ b/lib/xcode/install.rb @@ -682,7 +682,7 @@ def plist_entry(keypath) end def verify_app_security_assessment - puts `/usr/sbin/spctl --assess --verbose=4 --type execute #{@path}` + puts `/usr/bin/codesign --verify --verbose #{@path}` $?.exitstatus.zero? end