VScode automatically closes- ERROR:codesign_util.cc(109)] SecCodeCheckValidity: Error Domain=NSOSStatusErrorDomain Code=-67062 “(null)” (-67062)
I was facing this issue too .But quick solution that I've got was downgrading my vscode , it turns out the new version of vscode which uses internal codesign it generating this error , so by checking this website I have downgrade to the version of 23 Oct release .
The problem is internal vscode one of their new 2024 releases codesign .
is out there some way to fix it ? yes ; If you wanna know how to do that , just comment in order to let me know thus I can create new article how to use codesign to internally fix this .
first thing first uninstall everythng related to your old vscode :
# Uninstall Visual Studio Code
brew uninstall --cask visual-studio-code
# Optional: Remove configuration and cache files
rm -rf ~/.vscode
rm -rf ~/Library/Application\ Support/Code
rm -rf ~/Library/Caches/com.microsoft.VSCode
rm -rf ~/Library/Preferences/com.microsoft.VSCode.plist
rm -rf ~/Library/Saved\ Application\ State/com.microsoft.VSCode.savedState
and then use this website https://code.visualstudio.com/updates/v1_8 4 and select the old version you wan to ,just donwload and install and then it's working again as it used to:
https://code.visualstudio.com/updates/v1_84
and then you can test after the installation
#Install the code Command in PATH
#Open Visual Studio Code.
Press
Cmd+Shift+P
to open the Command Palette.
Type " Shell Command: Install 'code' command in PATH " and select it.
# Test opening Visual Studio Code
code .