The first installation of STS on my Mac works fine, and this error pops up after restarting the computer. The problem with stS4-4.13.1 installed is still the same. Attempting to specify the jdk version in the ~/Application/STS/Info.list file also does not work. PS:MacOs Monterey Below is the error message, please help me enter image description here
You are most likely facing a long standing issue in which Eclipse modifies its package contents after being opened. This in turn breaks its own signature that is generated by the apple build system when the package is originally created. And in the end, this will prevent it from being opened next time, since macOS thinks the package was tampered with...
The solution is to re-sign your application:
sudo codesign --force --sign - /Applications/SpringToolSuite4.app
If you want to you can first check if macos is indeed thinking that your package was tampered with this command:
codesign -v -vvv --deep /Applications/SpringToolSuite4.app
If it returns something in the lines of:
/Applications/SpringToolSuite4.app: invalid Info.plist (plist or signature have been modified)
then this is definitely the case.
NOTE: If you have Lombok installed, you have to re-sign it too before signing STS app:
sudo codesign --force --sign - /Applications/SpringToolSuite4.app/Contents/Eclipse/lombok.jar
Also if you have Lombok installed you have to sign it too before signing the STS app:
sudo codesign --force --sign - /Applications/SpringToolSuite4.app/Contents/Eclipse/lombok.jar
Afterward applied vnagy solution
© 2022 - 2024 — McMap. All rights reserved.