Open egel opened 6 months ago
Emm, I encountered the same issue And it's also the same environment.
@egel "Perhaps it's because the chip architecture is M2?"
xattr -d com.apple.quarantine /Applications/CopyQ.app codesign --force --deep --sign - /Applications/CopyQ.app
xattr -d com.apple.quarantine /Applications/CopyQ.app codesign --force --deep --sign - /Applications/CopyQ.app
shouldn't brew add it to their debug messsage?
YMMV, but the codesign
trick works for me on an Apple Silicon machine without need to revert versions. 🤷♂️
xattr -d com.apple.quarantine /Applications/CopyQ.app codesign --force --deep --sign - /Applications/CopyQ.app
it works fine on m3 mac
I have the same problem on m3 for version 9.0.0 and the previous version. macOS 14.5 Sonoma
after using the codesign trick the app just closed immediately after oppening
Just leaving this here for someone ----
Here’s an explanation of each command:
xattr -d com.apple.quarantine /Applications/CopyQ.app:
xattr: Stands for "extended attributes." This command manages extended attributes of files in macOS. -d: Deletes a specific attribute. com.apple.quarantine: This is the quarantine attribute that macOS adds to files downloaded from the internet. It flags them as needing user approval to run (for security). /Applications/CopyQ.app: This is the path to the app where you want to remove the quarantine attribute. Purpose: This command removes the quarantine flag from the CopyQ.app, allowing it to run without macOS's security warnings.
codesign --force --deep --sign - /Applications/CopyQ.app:
codesign: Used to sign code on macOS, which ensures its integrity and authenticity. --force: Forces the signing process to overwrite any existing signatures. --deep: Ensures that all nested code, like frameworks or helper applications inside the app bundle, are also signed. --sign -: The - indicates ad-hoc signing, meaning no certificate is used (it's unsigned in the traditional sense, but the OS sees it as being signed). /Applications/CopyQ.app: This is the path to the app being signed. Purpose: This command ad-hoc signs the CopyQ.app, ensuring macOS treats it as a valid application and can run it without any security blocks related to code signing.
Describe the bug “CopyQ.app” is damaged and can’t be opened after installing CopyQ on macOS M1 Pro 14.4 via
brew
To Reproduce Steps to reproduce the behavior:
Expected behavior After installation application should be able to be opened.
Screenshots
Version, OS and Environment
Additional context Install & also reisntall log was successful