diff --git a/lib/xcode/install.rb b/lib/xcode/install.rb
index <HASH>..<HASH> 100644
--- a/lib/xcode/install.rb
+++ b/lib/xcode/install.rb
@@ -682,7 +682,7 @@ HELP
     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
Use codesign to check bundle

As suggested by @jazaval here <URL>