hluk / CopyQ

Clipboard manager with advanced features
GNU General Public License v3.0
8.23k stars 429 forks source link

'can't open application' error on macOS Big Sur #2716

Closed MemeFormer closed 6 days ago

MemeFormer commented 1 month ago

Describe the bug

when trying to open after fresh install with brew install --cask copyq I get this:

Screen Shot 2024-05-11 at 5 07 18 PM Screen Shot 2024-05-11 at 5 07 02 PM

Version, OS and Environment

Screen Shot 2024-05-11 at 5 08 02 PM

Application Version:

well, about that.. even if

Screen Shot 2024-05-11 at 5 18 27 PM

and

Screen Shot 2024-05-11 at 5 19 09 PM

there is

Screen Shot 2024-05-11 at 5 19 42 PM

???

zishuzy commented 1 month ago

Me too.

rsshilli commented 1 month ago

It looks broke on Sonoma as well.

I suspect this is related to https://github.com/hluk/CopyQ/issues/2710.

image

rsshilli commented 1 month ago

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
MemeFormer commented 1 month ago

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:

  1. Confirmed Installation Location:

    • Verified the location of CopyQ installation using:
      ls /Applications | grep CopyQ
      mdfind "kMDItemDisplayName == 'CopyQ' && kMDItemKind == 'Application'"
      open -a CopyQ
  2. 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
  3. Initial Troubleshooting Steps:

    • Attempted to reinstall CopyQ via Homebrew:
      brew install --cask copyq
  4. Further Issues:

    • Homebrew upgrade process got stuck multiple times during llvm build.
    • Encountered errors when trying to install Qt due to missing full Xcode installation:
      brew install qt
      brew link --force qt

Final Solution:

  1. Resolution via .dmg Installer:

    • Decided to use an older version of CopyQ available as a .dmg file.
    • Downloaded and installed CopyQ 6.3.0-gbf2d498e-v6.3.0 from the CopyQ GitHub releases page.
    • The installation went smoothly with no issues.
  2. 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:

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.

hluk commented 1 month ago

I hope some of the issues are fixed in #2661. :crossed_fingers:

joshpetit commented 1 week ago

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

hluk commented 6 days ago

Closing as duplicate of #2652.

I'm updating installation steps in #2757.