CopyQ
CopyQ copied to clipboard
'can't open application' error on macOS Big Sur
Describe the bug
when trying to open after fresh install with brew install --cask copyq I get this:
Version, OS and Environment
Application Version:
well, about that.. even if
and
there is
???
Me too.
It looks broke on Sonoma as well.
I suspect this is related to https://github.com/hluk/CopyQ/issues/2710.
Oh. From https://github.com/hluk/CopyQ/issues/1331 I learned this trick. It fixed it for me:
xattr -d com.apple.quarantine /Applications/CopyQ.app
codesign --force --deep --sign - /Applications/CopyQ.app
Troubleshooting and Solution for CopyQ Installation Issue on macOS BigSur 11.7.10
Issue: Unable to run CopyQ after installation on macOS due to a specific Dyld Error Message indicating missing symbols related to Qt libraries.
Initial Steps and Encountered Issues:
-
Confirmed Installation Location:
- Verified the location of CopyQ installation using:
ls /Applications | grep CopyQ mdfind "kMDItemDisplayName == 'CopyQ' && kMDItemKind == 'Application'" open -a CopyQ
- Verified the location of CopyQ installation using:
-
Encountered Error:
- Dyld Error Message:
Symbol not found: __ZNKSt3__115basic_stringbufIcNS_11char_traitsIcEENS_9allocatorIcEEE3strEv Referenced from: /Applications/CopyQ.app/Contents/MacOS/../Frameworks/QtWidgets.framework/Versions/A/QtWidgets (which was built for Mac OS X 12.0) Expected in: /usr/lib/libc++.1.dylib
- Dyld Error Message:
-
Initial Troubleshooting Steps:
- Attempted to reinstall CopyQ via Homebrew:
brew install --cask copyq
- Attempted to reinstall CopyQ via Homebrew:
-
Further Issues:
- Homebrew upgrade process got stuck multiple times during
llvmbuild. - Encountered errors when trying to install Qt due to missing full Xcode installation:
brew install qt brew link --force qt
- Homebrew upgrade process got stuck multiple times during
Final Solution:
-
Resolution via .dmg Installer:
- Decided to use an older version of CopyQ available as a
.dmgfile. - Downloaded and installed CopyQ
6.3.0-gbf2d498e-v6.3.0from the CopyQ GitHub releases page. - The installation went smoothly with no issues.
- Decided to use an older version of CopyQ available as a
-
Clarification on Alternative Suggestion:
- A commenter suggested dealing with macOS security prompts using command line, but this was unrelated to the underlying issue.
- These security prompts can generally be bypassed by right-clicking (or Ctrl+clicking) the application and selecting "Open".
Additional Notes:
-
Homebrew Fix Not Possible:
- Due to the extensive time and resource requirements for building
llvmand installing Qt, updating Homebrew dependencies wasn't feasible in this case.
- Due to the extensive time and resource requirements for building
-
Specific Error Analysis:
- The initial error was related to a mismatch or missing Qt library built for a different macOS version. This pointed us towards updating dependencies, which led to discovering the Xcode requirement.
-
Potential for Newer .dmg Versions:
- While version
6.3.0worked, other newer versions might also work. Users are encouraged to try different versions if necessary.
- While version
Conclusion
Using an older .dmg version of CopyQ proved to be a successful workaround, bypassing the complex dependency issues faced with Homebrew installations. This approach may save time and avoid the intricacies of manually resolving build errors for others encountering similar problems.
I hope some of the issues are fixed in #2661. :crossed_fingers:
Oh. From #1331 I learned this trick. It fixed it for me:
xattr -d com.apple.quarantine /Applications/CopyQ.app codesign --force --deep --sign - /Applications/CopyQ.app
To make this more easily findable on google, this fixes the "copyq is damaged and can't be opened" error
Closing as duplicate of #2652.
I'm updating installation steps in #2757.