Just upgraded to Big Sur and have the same issue, but the codesign does not work. I get the xcrun error and not sure how to fix it.
I have run this as the user, which fails, but also after sudo to root.
As a standard user:
user$ codesign --force --deep --sign - /Applications/HP\ Easy\ Scan.app
/Applications/HP Easy Scan.app: replacing existing signature
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
/Applications/HP Easy Scan.app: the codesign_allocate helper tool cannot be found or used
In subcomponent: /Applications/HP Easy Scan.app/Contents/Frameworks/HPScanCaptureMgr.framework
As root:
root# codesign --force --deep --sign - /Applications/HP\ Easy\ Scan.app
/Applications/HP Easy Scan.app: replacing existing signature
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
/Applications/HP Easy Scan.app: the codesign_allocate helper tool cannot be found or used
In subcomponent: /Applications/HP Easy Scan.app/Contents/Frameworks/HPScanCaptureMgr.framework
I have even tried as root on the HP Utilitiy app, but still have the same problem.
root# codesign --force --deep --sign - /Applications/Hewlett-Packard/HP\ Utility.app
/Applications/Hewlett-Packard/HP Utility.app: replacing existing signature
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
/Applications/Hewlett-Packard/HP Utility.app: the codesign_allocate helper tool cannot be found or used
In subcomponent: /Library/Printers/hp/Utilities/HP Utility.app/Contents/Frameworks/HSDCommonLib.framework
Any advice?
Topic:
App & System Services
SubTopic:
Core OS
Tags: