Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin "itemtags" is not installed on MacOS M1 variant. #1903

Open
axonasif opened this issue Feb 8, 2022 · 10 comments
Open

Plugin "itemtags" is not installed on MacOS M1 variant. #1903

axonasif opened this issue Feb 8, 2022 · 10 comments
Labels
bug help wanted Needs a volunteer to investigate/implement the issue macOS Relates to macOS

Comments

@axonasif
Copy link
Contributor

axonasif commented Feb 8, 2022

Describe the bug
I'm unable to assign tags to clipboard items, maybe the tags plugin is missing in my macOS build?

To Reproduce
Steps to reproduce the behavior:

  1. Compile copyq from source by following the instructions in the copyq docs.
  2. Install and use copyq
  3. Try to assign a tag on an item

Expected behavior
The itemtags plugin should be there and work properly

Screenshots
None

Version, OS and Environment
(Get details from copyq version command if possible.)

  • Application Version: 6.0.1-16-g963f64ef
  • OS: MacOS 12.2
@axonasif axonasif added the bug label Feb 8, 2022
@hluk
Copy link
Owner

hluk commented Feb 10, 2022

I cannot help much without seeing the build logs. GitHub Actions build and bundle all plugins correctly.

To see if the plugin is included in the app, check if there is Tags entry in Items config tab in Preferences dialog.

image

@axonasif
Copy link
Contributor Author

axonasif commented Feb 10, 2022

Oh sorry @hluk
I had the logs copied but forgot to paste 😅

Here it goes:

Note [2022-02-08 12:30:44.538] <Server-15443>: No plugins loaded
Warning [2022-02-08 12:30:44.542] <Server-15443>: [kf.windowsystem] QtWarning: Could not find any platform plugin
Warning [2022-02-08 12:30:49.045] <Server-15443>: [qt.qpa.fonts] QtWarning: Populating font family aliases took 152 ms. Replace uses of missing font family "Monospace" with one that exists to avoid this cost. 
Note [2022-02-08 12:32:05.636] <Server-15443>: Exception in command "Add a Tag": ScriptError: Plugin "itemtags" is not installed
Note [2022-02-08 12:32:05.636] <Server-15443>:    
Note [2022-02-08 12:32:05.636] <Server-15443>:    --- backtrace ---
Note [2022-02-08 12:32:05.636] <Server-15443>:    get@:1
Note [2022-02-08 12:32:05.636] <Server-15443>:    %entry@eval code:1
Note [2022-02-08 12:32:05.636] <Server-15443>:    eval: plugins.itemtags.tag()
Note [2022-02-08 12:32:05.636] <Server-15443>:    eval
Note [2022-02-08 12:32:05.636] <Server-15443>:    --- end backtrace ---
Note [2022-02-08 12:32:05.638] <Server-15443>: Command “Add a Tag”
Note [2022-02-08 12:32:05.638] <Server-15443>:    Exit code: 4
Note [2022-02-08 12:32:05.638] <Server-15443>:    1. copyq:  plugins.itemtags.tag()
Note [2022-02-08 12:32:11.719] <Server-15443>: Exception in command "Add a Tag": ScriptError: Plugin "itemtags" is not installed
Note [2022-02-08 12:32:11.719] <Server-15443>:    
Note [2022-02-08 12:32:11.719] <Server-15443>:    --- backtrace ---
Note [2022-02-08 12:32:11.719] <Server-15443>:    get@:1
Note [2022-02-08 12:32:11.719] <Server-15443>:    %entry@eval code:1
Note [2022-02-08 12:32:11.719] <Server-15443>:    eval: plugins.itemtags.tag()
Note [2022-02-08 12:32:11.719] <Server-15443>:    eval
Note [2022-02-08 12:32:11.719] <Server-15443>:    --- end backtrace ---

@axonasif
Copy link
Contributor Author

And here is a screenshot of the preferences dialog
Screenshot 2022-02-10 at 7 38 43 PM
.

@hluk
Copy link
Owner

hluk commented Feb 10, 2022

Yup, no plugins included. Did they build fine? Or maybe there was a problem when creating the bundle.

@axonasif
Copy link
Contributor Author

axonasif commented Feb 11, 2022

Sorry for the late reply, I was using ./CopyQ.app but not ./_CPack_Packages/Darwin/DragNDrop/copyq-6.0.1-15-gff4f6705-Darwin/CopyQ.app.

Here's what I did to build and their logs:

mkdir build && cd build

cmake -DCMAKE_PREFIX_PATH=(brew --prefix qt5) -DCMAKE_LISTS_TXT_PATH="$PWD/../CMakeLists.txt" -DCMAKE_LISTS_OR_SETTINGS_JSON=CMakeListsTxtAdvanced -DCMAKE_BUILD_TYPE=Release -DCMAKE_GENERATOR=Ninja -DWITH_TESTS=TRUE ../ # I use fish shell, so (brew --prefix qt5) instead of $(brew --prefix qt5)

Output
-- The C compiler identification is AppleClang 13.0.0.13000029
-- The CXX compiler identification is AppleClang 13.0.0.13000029
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building with tests.
-- Found Git: /usr/bin/git (found version "2.32.0 (Apple Git-132)") 
-- Building CopyQ version 6.0.1-15-gff4f6705.
CMake Warning (dev) at /opt/homebrew/share/ECM/modules/ECMFindModuleHelpers.cmake:112 (message):
Your project should require at least CMake 3.16.0 to use FindKF5.cmake
Call Stack (most recent call first):
/opt/homebrew/share/ECM/find-modules/FindKF5.cmake:30 (ecm_find_package_version_check)
src/notifications.cmake:11 (find_package)
src/CMakeLists.txt:24 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found KF5Notifications: /opt/homebrew/lib/cmake/KF5Notifications/KF5NotificationsConfig.cmake (found version "5.87.0") 
-- Found KF5: success (found suitable version "5.87.0", minimum required is "5.18.0") found components: Notifications 
-- Could NOT find X11 (missing: X11_X11_INCLUDE_PATH X11_X11_LIB) 
-- Fixup app: ${CMAKE_INSTALL_PREFIX}/CopyQ.app
-- Fixup app plugins: $ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/CopyQ.app/Contents/PlugIns/copyq/libitemencrypted.so;$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/CopyQ.app/Contents/PlugIns/copyq/libitemfakevim.so;$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/CopyQ.app/Contents/PlugIns/copyq/libitemimage.so;$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/CopyQ.app/Contents/PlugIns/copyq/libitemnotes.so;$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/CopyQ.app/Contents/PlugIns/copyq/libitempinned.so;$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/CopyQ.app/Contents/PlugIns/copyq/libitemtags.so;$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/CopyQ.app/Contents/PlugIns/copyq/libitemtext.so;$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/CopyQ.app/Contents/PlugIns/copyq/libitemsync.so
-- Fixup qt plugins: ;$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/CopyQ.app/Contents/PlugIns/bearer/libqgenericbearer.dylib;$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/CopyQ.app/Contents/PlugIns/qmltooling/libqmldbg_messages.dylib;$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/CopyQ.app/Contents/PlugIns/qmltooling/libqmldbg_local.dylib;$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/CopyQ.app/Contents/PlugIns/qmltooling/libqmldbg_server.dylib;$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/CopyQ.app/Contents/PlugIns/qmltooling/libqmldbg_debugger.dylib;$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/CopyQ.app/Contents/PlugIns/qmltooling/libqmldbg_inspector.dylib;$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/CopyQ.app/Contents/PlugIns/qmltooling/libqmldbg_native.dylib;$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/CopyQ.app/Contents/PlugIns/qmltooling/libqmldbg_nativedebugger.dylib;$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/CopyQ.app/Contents/PlugIns/qmltooling/libqmldbg_preview.dylib;$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/CopyQ.app/Contents/PlugIns/qmltooling/libqmldbg_profiler.dylib;$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/CopyQ.app/Contents/PlugIns/qmltooling/libqmldbg_quickprofiler.dylib;$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/CopyQ.app/Contents/PlugIns/qmltooling/libqmldbg_tcp.dylib;$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/CopyQ.app/Contents/PlugIns/platforms/libqcocoa.dylib;$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/CopyQ.app/Contents/PlugIns/imageformats/libqgif.dylib;$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/CopyQ.app/Contents/PlugIns/imageformats/libqicns.dylib;$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/CopyQ.app/Contents/PlugIns/imageformats/libqico.dylib;$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/CopyQ.app/Contents/PlugIns/imageformats/libqjpeg.dylib;$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/CopyQ.app/Contents/PlugIns/imageformats/libqmacheif.dylib;$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/CopyQ.app/Contents/PlugIns/imageformats/libqmacjp2.dylib;$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/CopyQ.app/Contents/PlugIns/platforms/libqminimal.dylib;$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/CopyQ.app/Contents/PlugIns/platforms/libqoffscreen.dylib;$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/CopyQ.app/Contents/PlugIns/iconengines/libqsvgicon.dylib;$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/CopyQ.app/Contents/PlugIns/imageformats/libqsvg.dylib;$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/CopyQ.app/Contents/PlugIns/imageformats/libqtga.dylib;$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/CopyQ.app/Contents/PlugIns/imageformats/libqtiff.dylib;$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/CopyQ.app/Contents/PlugIns/generic/libqtuiotouchplugin.dylib;$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/CopyQ.app/Contents/PlugIns/platforminputcontexts/libqtvirtualkeyboardplugin.dylib;$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/CopyQ.app/Contents/PlugIns/imageformats/libqwbmp.dylib;$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/CopyQ.app/Contents/PlugIns/platforms/libqwebgl.dylib;$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/CopyQ.app/Contents/PlugIns/imageformats/libqwebp.dylib;$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/CopyQ.app/Contents/PlugIns/platformthemes/libqxdgdesktopportal.dylib;$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/CopyQ.app/Contents/PlugIns/styles/libqmacstyle.dylib
-- Fixup dirs: /Users/axon/CopyQ/build;;/opt/homebrew/opt/qt@5/lib/cmake/Qt5Widgets/../..
-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:

  CMAKE_LISTS_OR_SETTINGS_JSON
  CMAKE_LISTS_TXT_PATH


-- Build files have been written to: /Users/axon/CopyQ/build

cmake --build .

Output
[2/313] cd /Users/axon/CopyQ/src && /opt/homebrew/Cellar/cmake/3.22.1...ld/src/common/version.cpp -P /Users/axon/CopyQ/src/version_file.cmak
-- Found Git: /usr/bin/git (found version "2.32.0 (Apple Git-132)") 
[49/313] Generating copyq_ar.qm
Updating '/Users/axon/CopyQ/build/src/copyq_ar.qm'...
  Generated 71 translation(s) (51 finished and 20 unfinished)
  Ignored 570 untranslated source text(s)
[50/313] Generating copyq_cs.qm
Updating '/Users/axon/CopyQ/build/src/copyq_cs.qm'...
  Generated 641 translation(s) (641 finished and 0 unfinished)
[51/313] Generating copyq_da.qm
Updating '/Users/axon/CopyQ/build/src/copyq_da.qm'...
  Generated 572 translation(s) (407 finished and 165 unfinished)
  Ignored 69 untranslated source text(s)
[55/313] Generating copyq_de.qm
Updating '/Users/axon/CopyQ/build/src/copyq_de.qm'...
  Generated 632 translation(s) (632 finished and 0 unfinished)
  Ignored 9 untranslated source text(s)
[58/313] Generating copyq_el.qm
Updating '/Users/axon/CopyQ/build/src/copyq_el.qm'...
  Generated 641 translation(s) (641 finished and 0 unfinished)
[59/313] Generating copyq_fa.qm
Updating '/Users/axon/CopyQ/build/src/copyq_fa.qm'...
  Generated 62 translation(s) (59 finished and 3 unfinished)
  Ignored 579 untranslated source text(s)
[60/313] Generating copyq_es.qm
Updating '/Users/axon/CopyQ/build/src/copyq_es.qm'...
  Generated 626 translation(s) (598 finished and 28 unfinished)
  Ignored 15 untranslated source text(s)
[61/313] Generating copyq_fi.qm
Updating '/Users/axon/CopyQ/build/src/copyq_fi.qm'...
  Generated 0 translation(s) (0 finished and 0 unfinished)
  Ignored 641 untranslated source text(s)
[64/313] Generating copyq_fr.qm
Updating '/Users/axon/CopyQ/build/src/copyq_fr.qm'...
  Generated 632 translation(s) (632 finished and 0 unfinished)
  Ignored 9 untranslated source text(s)
[68/313] Generating copyq_hr.qm
Updating '/Users/axon/CopyQ/build/src/copyq_hr.qm'...
  Generated 641 translation(s) (641 finished and 0 unfinished)
[69/313] Generating copyq_hu.qm
Updating '/Users/axon/CopyQ/build/src/copyq_hu.qm'...
  Generated 33 translation(s) (15 finished and 18 unfinished)
  Ignored 608 untranslated source text(s)
[70/313] Generating copyq_id.qm
Updating '/Users/axon/CopyQ/build/src/copyq_id.qm'...
  Generated 270 translation(s) (263 finished and 7 unfinished)
  Ignored 371 untranslated source text(s)
[73/313] Generating copyq_it.qm
Updating '/Users/axon/CopyQ/build/src/copyq_it.qm'...
  Generated 641 translation(s) (641 finished and 0 unfinished)
[74/313] Generating copyq_ja.qm
Updating '/Users/axon/CopyQ/build/src/copyq_ja.qm'...
  Generated 619 translation(s) (619 finished and 0 unfinished)
  Ignored 22 untranslated source text(s)
[79/313] Generating copyq_lt.qm
Updating '/Users/axon/CopyQ/build/src/copyq_lt.qm'...
  Generated 77 translation(s) (61 finished and 16 unfinished)
  Ignored 564 untranslated source text(s)
[80/313] Generating copyq_ko.qm
Updating '/Users/axon/CopyQ/build/src/copyq_ko.qm'...
  Generated 172 translation(s) (165 finished and 7 unfinished)
  Ignored 469 untranslated source text(s)
[82/313] Generating copyq_nb.qm
Updating '/Users/axon/CopyQ/build/src/copyq_nb.qm'...
  Generated 641 translation(s) (522 finished and 119 unfinished)
[85/313] Generating copyq_nl.qm
Updating '/Users/axon/CopyQ/build/src/copyq_nl.qm'...
  Generated 641 translation(s) (641 finished and 0 unfinished)
[86/313] Generating copyq_pl.qm
Updating '/Users/axon/CopyQ/build/src/copyq_pl.qm'...
  Generated 337 translation(s) (201 finished and 136 unfinished)
  Ignored 304 untranslated source text(s)
[88/313] Generating copyq_pt_BR.qm
Updating '/Users/axon/CopyQ/build/src/copyq_pt_BR.qm'...
  Generated 641 translation(s) (641 finished and 0 unfinished)
[92/313] Generating copyq_sk.qm
Updating '/Users/axon/CopyQ/build/src/copyq_sk.qm'...
  Generated 220 translation(s) (216 finished and 4 unfinished)
  Ignored 422 untranslated source text(s)
[93/313] Generating copyq_ru.qm
Updating '/Users/axon/CopyQ/build/src/copyq_ru.qm'...
  Generated 641 translation(s) (641 finished and 0 unfinished)
[94/313] Generating copyq_pt_PT.qm
Updating '/Users/axon/CopyQ/build/src/copyq_pt_PT.qm'...
  Generated 641 translation(s) (641 finished and 0 unfinished)
[98/313] Generating copyq_uk.qm
Updating '/Users/axon/CopyQ/build/src/copyq_uk.qm'...
  Generated 633 translation(s) (633 finished and 0 unfinished)
  Ignored 8 untranslated source text(s)
[99/313] Generating copyq_sv.qm
Updating '/Users/axon/CopyQ/build/src/copyq_sv.qm'...
  Generated 640 translation(s) (640 finished and 0 unfinished)
  Ignored 1 untranslated source text(s)
[100/313] Generating copyq_tr.qm
Updating '/Users/axon/CopyQ/build/src/copyq_tr.qm'...
  Generated 641 translation(s) (641 finished and 0 unfinished)
[101/313] Generating copyq_zh_CN.qm
Updating '/Users/axon/CopyQ/build/src/copyq_zh_CN.qm'...
  Generated 641 translation(s) (641 finished and 0 unfinished)
[106/313] Generating copyq_zh_TW.qm
Updating '/Users/axon/CopyQ/build/src/copyq_zh_TW.qm'...
  Generated 641 translation(s) (641 finished and 0 unfinished)
[214/313] Building CXX object src/CMakeFiles/CopyQ.dir/platform/mac/copyqpasteboardmime.mm.o
/Users/axon/CopyQ/src/platform/mac/copyqpasteboardmime.mm:55:54: warning: 'kUTTagClassMIMEType' is deprecated: first deprecated in macOS 12.0 - Use UTTagClassMIMEType instead. [-Wdeprecated-declarations]
      return UTTypeCreatePreferredIdentifierForTag(kUTTagClassMIMEType, mime, NULL);
                                                   ^
/Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Headers/UTType.h:262:26: note: 'kUTTagClassMIMEType' has been explicitly marked deprecated here
extern const CFStringRef kUTTagClassMIMEType                         API_DEPRECATED("Use UTTagClassMIMEType instead.", ios(3.0, 15.0), macos(10.3, 12.0), tvos(9.0, 15.0), watchos(1.0, 8.0));
                       ^
/Users/axon/CopyQ/src/platform/mac/copyqpasteboardmime.mm:55:16: warning: 'UTTypeCreatePreferredIdentifierForTag' is deprecated: first deprecated in macOS 12.0 - Use the UTType class instead. [-Wdeprecated-declarations]
      return UTTypeCreatePreferredIdentifierForTag(kUTTagClassMIMEType, mime, NULL);
             ^
/Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Headers/UTType.h:317:1: note: 'UTTypeCreatePreferredIdentifierForTag' has been explicitly marked deprecated here
UTTypeCreatePreferredIdentifierForTag(
^
/Users/axon/CopyQ/src/platform/mac/copyqpasteboardmime.mm:59:75: warning: 'kUTTagClassMIMEType' is deprecated: first deprecated in macOS 12.0 - Use UTTagClassMIMEType instead. [-Wdeprecated-declarations]
      return UTTypeCopyPreferredTagWithClass((__bridge CFStringRef)uti, kUTTagClassMIMEType);
                                                                        ^
/Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Headers/UTType.h:262:26: note: 'kUTTagClassMIMEType' has been explicitly marked deprecated here
extern const CFStringRef kUTTagClassMIMEType                         API_DEPRECATED("Use UTTagClassMIMEType instead.", ios(3.0, 15.0), macos(10.3, 12.0), tvos(9.0, 15.0), watchos(1.0, 8.0));
                       ^
/Users/axon/CopyQ/src/platform/mac/copyqpasteboardmime.mm:59:16: warning: 'UTTypeCopyPreferredTagWithClass' is deprecated: first deprecated in macOS 12.0 - Use the UTType class instead. [-Wdeprecated-declarations]
      return UTTypeCopyPreferredTagWithClass((__bridge CFStringRef)uti, kUTTagClassMIMEType);
             ^
/Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Headers/UTType.h:395:1: note: 'UTTypeCopyPreferredTagWithClass' has been explicitly marked deprecated here
UTTypeCopyPreferredTagWithClass(
^
4 warnings generated.
[223/313] Building CXX object src/CMakeFiles/CopyQ.dir/platform/mac/macplatform.mm.o
/Users/axon/CopyQ/src/platform/mac/macplatform.mm:70:28: warning: 'LSSharedFileListCopySnapshot' is deprecated: first deprecated in macOS 10.11 - No longer supported [-Wdeprecated-declarations]
      CFArrayRef items = LSSharedFileListCopySnapshot(list, &seed);
                         ^
/Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/SharedFileList.framework/Headers/LSSharedFileList.h:623:1: note: 'LSSharedFileListCopySnapshot' has been explicitly marked deprecated here
LSSharedFileListCopySnapshot(
^
/Users/axon/CopyQ/src/platform/mac/macplatform.mm:76:25: warning: 'LSSharedFileListItemResolve' is deprecated: first deprecated in macOS 10.10 [-Wdeprecated-declarations]
                  if (LSSharedFileListItemResolve(itemRef, 0, &url, NULL) == noErr) {
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~
                      LSSharedFileListItemCopyResolvedURL
/Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/SharedFileList.framework/Headers/LSSharedFileList.h:949:1: note: 'LSSharedFileListItemResolve' has been explicitly marked deprecated here
LSSharedFileListItemResolve(
^
/Users/axon/CopyQ/src/platform/mac/macplatform.mm:91:80: warning: 'kLSSharedFileListSessionLoginItems' is deprecated: first deprecated in macOS 10.11 [-Wdeprecated-declarations]
      LSSharedFileListRef list = LSSharedFileListCreate(kCFAllocatorDefault, kLSSharedFileListSessionLoginItems, NULL);
                                                                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                                                             Use a LaunchAgent, XPCService or the ServiceManagement APIs instead.
/Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/SharedFileList.framework/Headers/LSSharedFileList.h:126:20: note: 'kLSSharedFileListSessionLoginItems' has been explicitly marked deprecated here
extern CFStringRef kLSSharedFileListSessionLoginItems                API_DEPRECATED_WITH_REPLACEMENT("Use a LaunchAgent, XPCService or the ServiceManagement APIs instead.", macos(10.5, 10.11)) API_UNAVAILABLE(ios, tvos, watchos);
                 ^
/Users/axon/CopyQ/src/platform/mac/macplatform.mm:91:36: warning: 'LSSharedFileListCreate' is deprecated: first deprecated in macOS 10.11 - No longer supported [-Wdeprecated-declarations]
      LSSharedFileListRef list = LSSharedFileListCreate(kCFAllocatorDefault, kLSSharedFileListSessionLoginItems, NULL);
                                 ^
/Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/SharedFileList.framework/Headers/LSSharedFileList.h:365:1: note: 'LSSharedFileListCreate' has been explicitly marked deprecated here
LSSharedFileListCreate(
^
/Users/axon/CopyQ/src/platform/mac/macplatform.mm:100:88: warning: 'kLSSharedFileListItemLast' is deprecated: first deprecated in macOS 10.11 - No longer supported [-Wdeprecated-declarations]
                  LSSharedFileListItemRef item = LSSharedFileListInsertItemURL(list, kLSSharedFileListItemLast, NULL, NULL, url, (__bridge CFDictionaryRef)properties, NULL);
                                                                                     ^
/Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/SharedFileList.framework/Headers/LSSharedFileList.h:234:32: note: 'kLSSharedFileListItemLast' has been explicitly marked deprecated here
extern LSSharedFileListItemRef kLSSharedFileListItemLast             API_DEPRECATED("No longer supported", macos(10.5, 10.11)) API_UNAVAILABLE(ios, tvos, watchos);
                             ^
/Users/axon/CopyQ/src/platform/mac/macplatform.mm:100:52: warning: 'LSSharedFileListInsertItemURL' is deprecated: first deprecated in macOS 10.11 - No longer supported [-Wdeprecated-declarations]
                  LSSharedFileListItemRef item = LSSharedFileListInsertItemURL(list, kLSSharedFileListItemLast, NULL, NULL, url, (__bridge CFDictionaryRef)properties, NULL);
                                                 ^
/Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/SharedFileList.framework/Headers/LSSharedFileList.h:680:1: note: 'LSSharedFileListInsertItemURL' has been explicitly marked deprecated here
LSSharedFileListInsertItemURL(
^
/Users/axon/CopyQ/src/platform/mac/macplatform.mm:115:80: warning: 'kLSSharedFileListSessionLoginItems' is deprecated: first deprecated in macOS 10.11 [-Wdeprecated-declarations]
      LSSharedFileListRef list = LSSharedFileListCreate(kCFAllocatorDefault, kLSSharedFileListSessionLoginItems, NULL);
                                                                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                                                             Use a LaunchAgent, XPCService or the ServiceManagement APIs instead.
/Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/SharedFileList.framework/Headers/LSSharedFileList.h:126:20: note: 'kLSSharedFileListSessionLoginItems' has been explicitly marked deprecated here
extern CFStringRef kLSSharedFileListSessionLoginItems                API_DEPRECATED_WITH_REPLACEMENT("Use a LaunchAgent, XPCService or the ServiceManagement APIs instead.", macos(10.5, 10.11)) API_UNAVAILABLE(ios, tvos, watchos);
                 ^
/Users/axon/CopyQ/src/platform/mac/macplatform.mm:115:36: warning: 'LSSharedFileListCreate' is deprecated: first deprecated in macOS 10.11 - No longer supported [-Wdeprecated-declarations]
      LSSharedFileListRef list = LSSharedFileListCreate(kCFAllocatorDefault, kLSSharedFileListSessionLoginItems, NULL);
                                 ^
/Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/SharedFileList.framework/Headers/LSSharedFileList.h:365:1: note: 'LSSharedFileListCreate' has been explicitly marked deprecated here
LSSharedFileListCreate(
^
/Users/axon/CopyQ/src/platform/mac/macplatform.mm:121:40: warning: 'LSSharedFileListCopySnapshot' is deprecated: first deprecated in macOS 10.11 - No longer supported [-Wdeprecated-declarations]
                  CFArrayRef items = LSSharedFileListCopySnapshot(list, &seed);
                                     ^
/Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/SharedFileList.framework/Headers/LSSharedFileList.h:623:1: note: 'LSSharedFileListCopySnapshot' has been explicitly marked deprecated here
LSSharedFileListCopySnapshot(
^
/Users/axon/CopyQ/src/platform/mac/macplatform.mm:125:33: warning: 'LSSharedFileListItemResolve' is deprecated: first deprecated in macOS 10.10 [-Wdeprecated-declarations]
                          if (LSSharedFileListItemResolve(itemRef, 0, &url, NULL) == noErr)
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~
                              LSSharedFileListItemCopyResolvedURL
/Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/SharedFileList.framework/Headers/LSSharedFileList.h:949:1: note: 'LSSharedFileListItemResolve' has been explicitly marked deprecated here
LSSharedFileListItemResolve(
^
/Users/axon/CopyQ/src/platform/mac/macplatform.mm:127:37: warning: 'LSSharedFileListItemRemove' is deprecated: first deprecated in macOS 10.11 - No longer supported [-Wdeprecated-declarations]
                                  LSSharedFileListItemRemove(list, itemRef);
                                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/SharedFileList.framework/Headers/LSSharedFileList.h:818:1: note: 'LSSharedFileListItemRemove' has been explicitly marked deprecated here
LSSharedFileListItemRemove(
^
/Users/axon/CopyQ/src/platform/mac/macplatform.mm:295:76: warning: 'kLSSharedFileListSessionLoginItems' is deprecated: first deprecated in macOS 10.11 [-Wdeprecated-declarations]
  LSSharedFileListRef list = LSSharedFileListCreate(kCFAllocatorDefault, kLSSharedFileListSessionLoginItems, NULL);
                                                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                                                         Use a LaunchAgent, XPCService or the ServiceManagement APIs instead.
/Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/SharedFileList.framework/Headers/LSSharedFileList.h:126:20: note: 'kLSSharedFileListSessionLoginItems' has been explicitly marked deprecated here
extern CFStringRef kLSSharedFileListSessionLoginItems                API_DEPRECATED_WITH_REPLACEMENT("Use a LaunchAgent, XPCService or the ServiceManagement APIs instead.", macos(10.5, 10.11)) API_UNAVAILABLE(ios, tvos, watchos);
                 ^
/Users/axon/CopyQ/src/platform/mac/macplatform.mm:295:32: warning: 'LSSharedFileListCreate' is deprecated: first deprecated in macOS 10.11 - No longer supported [-Wdeprecated-declarations]
  LSSharedFileListRef list = LSSharedFileListCreate(kCFAllocatorDefault, kLSSharedFileListSessionLoginItems, NULL);
                             ^
/Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/SharedFileList.framework/Headers/LSSharedFileList.h:365:1: note: 'LSSharedFileListCreate' has been explicitly marked deprecated here
LSSharedFileListCreate(
^
13 warnings generated.
[313/313] Linking CXX executable CopyQ.app/Contents/MacOS/CopyQ

cpack

Output
CPack: Create package using DragNDrop
CPack: Install projects
CPack: - Install project: copyq []
/Library/Developer/CommandLineTools/usr/bin/install_name_tool: warning: changes being made to the file will invalidate the code signature in: /Users/axon/CopyQ/build/_CPack_Packages/Darwin/DragNDrop/copyq-6.0.1-15-gff4f6705-Darwin/CopyQ.app/Contents/PlugIns/bearer/libqgenericbearer.dylib
/Library/Developer/CommandLineTools/usr/bin/install_name_tool: warning: changes being made to the file will invalidate the code signature in: /Users/axon/CopyQ/build/_CPack_Packages/Darwin/DragNDrop/copyq-6.0.1-15-gff4f6705-Darwin/CopyQ.app/Contents/Frameworks/QtCore.framework/Versions/5/QtCore
/Library/Developer/CommandLineTools/usr/bin/install_name_tool: warning: changes being made to the file will invalidate the code signature in: /Users/axon/CopyQ/build/_CPack_Packages/Darwin/DragNDrop/copyq-6.0.1-15-gff4f6705-Darwin/CopyQ.app/Contents/Frameworks/QtNetwork.framework/Versions/5/QtNetwork
/Library/Developer/CommandLineTools/usr/bin/install_name_tool: warning: changes being made to the file will invalidate the code signature in: /Users/axon/CopyQ/build/_CPack_Packages/Darwin/DragNDrop/copyq-6.0.1-15-gff4f6705-Darwin/CopyQ.app/Contents/PlugIns/qmltooling/libqmldbg_messages.dylib
/Library/Developer/CommandLineTools/usr/bin/install_name_tool: warning: changes being made to the file will invalidate the code signature in: /Users/axon/CopyQ/build/_CPack_Packages/Darwin/DragNDrop/copyq-6.0.1-15-gff4f6705-Darwin/CopyQ.app/Contents/Frameworks/QtQml.framework/Versions/5/QtQml
/Library/Developer/CommandLineTools/usr/bin/install_name_tool: warning: changes being made to the file will invalidate the code signature in: /Users/axon/CopyQ/build/_CPack_Packages/Darwin/DragNDrop/copyq-6.0.1-15-gff4f6705-Darwin/CopyQ.app/Contents/PlugIns/qmltooling/libqmldbg_local.dylib
/Library/Developer/CommandLineTools/usr/bin/install_name_tool: warning: changes being made to the file will invalidate the code signature in: /Users/axon/CopyQ/build/_CPack_Packages/Darwin/DragNDrop/copyq-6.0.1-15-gff4f6705-Darwin/CopyQ.app/Contents/PlugIns/qmltooling/libqmldbg_server.dylib
/Library/Developer/CommandLineTools/usr/bin/install_name_tool: warning: changes being made to the file will invalidate the code signature in: /Users/axon/CopyQ/build/_CPack_Packages/Darwin/DragNDrop/copyq-6.0.1-15-gff4f6705-Darwin/CopyQ.app/Contents/PlugIns/qmltooling/libqmldbg_debugger.dylib
/Library/Developer/CommandLineTools/usr/bin/install_name_tool: warning: changes being made to the file will invalidate the code signature in: /Users/axon/CopyQ/build/_CPack_Packages/Darwin/DragNDrop/copyq-6.0.1-15-gff4f6705-Darwin/CopyQ.app/Contents/PlugIns/qmltooling/libqmldbg_inspector.dylib
/Library/Developer/CommandLineTools/usr/bin/install_name_tool: warning: changes being made to the file will invalidate the code signature in: /Users/axon/CopyQ/build/_CPack_Packages/Darwin/DragNDrop/copyq-6.0.1-15-gff4f6705-Darwin/CopyQ.app/Contents/Frameworks/QtGui.framework/Versions/5/QtGui
/Library/Developer/CommandLineTools/usr/bin/install_name_tool: warning: changes being made to the file will invalidate the code signature in: /Users/axon/CopyQ/build/_CPack_Packages/Darwin/DragNDrop/copyq-6.0.1-15-gff4f6705-Darwin/CopyQ.app/Contents/Frameworks/QtQmlModels.framework/Versions/5/QtQmlModels
/Library/Developer/CommandLineTools/usr/bin/install_name_tool: warning: changes being made to the file will invalidate the code signature in: /Users/axon/CopyQ/build/_CPack_Packages/Darwin/DragNDrop/copyq-6.0.1-15-gff4f6705-Darwin/CopyQ.app/Contents/Frameworks/QtQuick.framework/Versions/5/QtQuick
/Library/Developer/CommandLineTools/usr/bin/install_name_tool: warning: changes being made to the file will invalidate the code signature in: /Users/axon/CopyQ/build/_CPack_Packages/Darwin/DragNDrop/copyq-6.0.1-15-gff4f6705-Darwin/CopyQ.app/Contents/PlugIns/qmltooling/libqmldbg_native.dylib
/Library/Developer/CommandLineTools/usr/bin/install_name_tool: warning: changes being made to the file will invalidate the code signature in: /Users/axon/CopyQ/build/_CPack_Packages/Darwin/DragNDrop/copyq-6.0.1-15-gff4f6705-Darwin/CopyQ.app/Contents/PlugIns/qmltooling/libqmldbg_nativedebugger.dylib
/Library/Developer/CommandLineTools/usr/bin/install_name_tool: warning: changes being made to the file will invalidate the code signature in: /Users/axon/CopyQ/build/_CPack_Packages/Darwin/DragNDrop/copyq-6.0.1-15-gff4f6705-Darwin/CopyQ.app/Contents/PlugIns/qmltooling/libqmldbg_preview.dylib
/Library/Developer/CommandLineTools/usr/bin/install_name_tool: warning: changes being made to the file will invalidate the code signature in: /Users/axon/CopyQ/build/_CPack_Packages/Darwin/DragNDrop/copyq-6.0.1-15-gff4f6705-Darwin/CopyQ.app/Contents/PlugIns/qmltooling/libqmldbg_profiler.dylib
/Library/Developer/CommandLineTools/usr/bin/install_name_tool: warning: changes being made to the file will invalidate the code signature in: /Users/axon/CopyQ/build/_CPack_Packages/Darwin/DragNDrop/copyq-6.0.1-15-gff4f6705-Darwin/CopyQ.app/Contents/PlugIns/qmltooling/libqmldbg_quickprofiler.dylib
/Library/Developer/CommandLineTools/usr/bin/install_name_tool: warning: changes being made to the file will invalidate the code signature in: /Users/axon/CopyQ/build/_CPack_Packages/Darwin/DragNDrop/copyq-6.0.1-15-gff4f6705-Darwin/CopyQ.app/Contents/PlugIns/qmltooling/libqmldbg_tcp.dylib
/Library/Developer/CommandLineTools/usr/bin/install_name_tool: warning: changes being made to the file will invalidate the code signature in: /Users/axon/CopyQ/build/_CPack_Packages/Darwin/DragNDrop/copyq-6.0.1-15-gff4f6705-Darwin/CopyQ.app/Contents/PlugIns/platforms/libqcocoa.dylib
/Library/Developer/CommandLineTools/usr/bin/install_name_tool: warning: changes being made to the file will invalidate the code signature in: /Users/axon/CopyQ/build/_CPack_Packages/Darwin/DragNDrop/copyq-6.0.1-15-gff4f6705-Darwin/CopyQ.app/Contents/Frameworks/QtDBus.framework/Versions/5/QtDBus
/Library/Developer/CommandLineTools/usr/bin/install_name_tool: warning: changes being made to the file will invalidate the code signature in: /Users/axon/CopyQ/build/_CPack_Packages/Darwin/DragNDrop/copyq-6.0.1-15-gff4f6705-Darwin/CopyQ.app/Contents/Frameworks/QtPrintSupport.framework/Versions/5/QtPrintSupport
/Library/Developer/CommandLineTools/usr/bin/install_name_tool: warning: changes being made to the file will invalidate the code signature in: /Users/axon/CopyQ/build/_CPack_Packages/Darwin/DragNDrop/copyq-6.0.1-15-gff4f6705-Darwin/CopyQ.app/Contents/Frameworks/QtWidgets.framework/Versions/5/QtWidgets
/Library/Developer/CommandLineTools/usr/bin/install_name_tool: warning: changes being made to the file will invalidate the code signature in: /Users/axon/CopyQ/build/_CPack_Packages/Darwin/DragNDrop/copyq-6.0.1-15-gff4f6705-Darwin/CopyQ.app/Contents/PlugIns/imageformats/libqgif.dylib
/Library/Developer/CommandLineTools/usr/bin/install_name_tool: warning: changes being made to the file will invalidate the code signature in: /Users/axon/CopyQ/build/_CPack_Packages/Darwin/DragNDrop/copyq-6.0.1-15-gff4f6705-Darwin/CopyQ.app/Contents/PlugIns/imageformats/libqicns.dylib
/Library/Developer/CommandLineTools/usr/bin/install_name_tool: warning: changes being made to the file will invalidate the code signature in: /Users/axon/CopyQ/build/_CPack_Packages/Darwin/DragNDrop/copyq-6.0.1-15-gff4f6705-Darwin/CopyQ.app/Contents/PlugIns/imageformats/libqico.dylib
/Library/Developer/CommandLineTools/usr/bin/install_name_tool: warning: changes being made to the file will invalidate the code signature in: /Users/axon/CopyQ/build/_CPack_Packages/Darwin/DragNDrop/copyq-6.0.1-15-gff4f6705-Darwin/CopyQ.app/Contents/PlugIns/imageformats/libqjpeg.dylib
/Library/Developer/CommandLineTools/usr/bin/install_name_tool: warning: changes being made to the file will invalidate the code signature in: /Users/axon/CopyQ/build/_CPack_Packages/Darwin/DragNDrop/copyq-6.0.1-15-gff4f6705-Darwin/CopyQ.app/Contents/PlugIns/imageformats/libqmacheif.dylib
/Library/Developer/CommandLineTools/usr/bin/install_name_tool: warning: changes being made to the file will invalidate the code signature in: /Users/axon/CopyQ/build/_CPack_Packages/Darwin/DragNDrop/copyq-6.0.1-15-gff4f6705-Darwin/CopyQ.app/Contents/PlugIns/imageformats/libqmacjp2.dylib
/Library/Developer/CommandLineTools/usr/bin/install_name_tool: warning: changes being made to the file will invalidate the code signature in: /Users/axon/CopyQ/build/_CPack_Packages/Darwin/DragNDrop/copyq-6.0.1-15-gff4f6705-Darwin/CopyQ.app/Contents/PlugIns/platforms/libqminimal.dylib
/Library/Developer/CommandLineTools/usr/bin/install_name_tool: warning: changes being made to the file will invalidate the code signature in: /Users/axon/CopyQ/build/_CPack_Packages/Darwin/DragNDrop/copyq-6.0.1-15-gff4f6705-Darwin/CopyQ.app/Contents/PlugIns/platforms/libqoffscreen.dylib
/Library/Developer/CommandLineTools/usr/bin/install_name_tool: warning: changes being made to the file will invalidate the code signature in: /Users/axon/CopyQ/build/_CPack_Packages/Darwin/DragNDrop/copyq-6.0.1-15-gff4f6705-Darwin/CopyQ.app/Contents/PlugIns/iconengines/libqsvgicon.dylib
/Library/Developer/CommandLineTools/usr/bin/install_name_tool: warning: changes being made to the file will invalidate the code signature in: /Users/axon/CopyQ/build/_CPack_Packages/Darwin/DragNDrop/copyq-6.0.1-15-gff4f6705-Darwin/CopyQ.app/Contents/Frameworks/QtSvg.framework/Versions/5/QtSvg
/Library/Developer/CommandLineTools/usr/bin/install_name_tool: warning: changes being made to the file will invalidate the code signature in: /Users/axon/CopyQ/build/_CPack_Packages/Darwin/DragNDrop/copyq-6.0.1-15-gff4f6705-Darwin/CopyQ.app/Contents/PlugIns/imageformats/libqsvg.dylib
/Library/Developer/CommandLineTools/usr/bin/install_name_tool: warning: changes being made to the file will invalidate the code signature in: /Users/axon/CopyQ/build/_CPack_Packages/Darwin/DragNDrop/copyq-6.0.1-15-gff4f6705-Darwin/CopyQ.app/Contents/PlugIns/imageformats/libqtga.dylib
/Library/Developer/CommandLineTools/usr/bin/install_name_tool: warning: changes being made to the file will invalidate the code signature in: /Users/axon/CopyQ/build/_CPack_Packages/Darwin/DragNDrop/copyq-6.0.1-15-gff4f6705-Darwin/CopyQ.app/Contents/PlugIns/imageformats/libqtiff.dylib
/Library/Developer/CommandLineTools/usr/bin/install_name_tool: warning: changes being made to the file will invalidate the code signature in: /Users/axon/CopyQ/build/_CPack_Packages/Darwin/DragNDrop/copyq-6.0.1-15-gff4f6705-Darwin/CopyQ.app/Contents/PlugIns/generic/libqtuiotouchplugin.dylib
/Library/Developer/CommandLineTools/usr/bin/install_name_tool: warning: changes being made to the file will invalidate the code signature in: /Users/axon/CopyQ/build/_CPack_Packages/Darwin/DragNDrop/copyq-6.0.1-15-gff4f6705-Darwin/CopyQ.app/Contents/PlugIns/platforminputcontexts/libqtvirtualkeyboardplugin.dylib
/Library/Developer/CommandLineTools/usr/bin/install_name_tool: warning: changes being made to the file will invalidate the code signature in: /Users/axon/CopyQ/build/_CPack_Packages/Darwin/DragNDrop/copyq-6.0.1-15-gff4f6705-Darwin/CopyQ.app/Contents/Frameworks/QtVirtualKeyboard.framework/Versions/5/QtVirtualKeyboard
/Library/Developer/CommandLineTools/usr/bin/install_name_tool: warning: changes being made to the file will invalidate the code signature in: /Users/axon/CopyQ/build/_CPack_Packages/Darwin/DragNDrop/copyq-6.0.1-15-gff4f6705-Darwin/CopyQ.app/Contents/PlugIns/imageformats/libqwbmp.dylib
/Library/Developer/CommandLineTools/usr/bin/install_name_tool: warning: changes being made to the file will invalidate the code signature in: /Users/axon/CopyQ/build/_CPack_Packages/Darwin/DragNDrop/copyq-6.0.1-15-gff4f6705-Darwin/CopyQ.app/Contents/PlugIns/platforms/libqwebgl.dylib
/Library/Developer/CommandLineTools/usr/bin/install_name_tool: warning: changes being made to the file will invalidate the code signature in: /Users/axon/CopyQ/build/_CPack_Packages/Darwin/DragNDrop/copyq-6.0.1-15-gff4f6705-Darwin/CopyQ.app/Contents/Frameworks/QtWebSockets.framework/Versions/5/QtWebSockets
/Library/Developer/CommandLineTools/usr/bin/install_name_tool: warning: changes being made to the file will invalidate the code signature in: /Users/axon/CopyQ/build/_CPack_Packages/Darwin/DragNDrop/copyq-6.0.1-15-gff4f6705-Darwin/CopyQ.app/Contents/PlugIns/imageformats/libqwebp.dylib
/Library/Developer/CommandLineTools/usr/bin/install_name_tool: warning: changes being made to the file will invalidate the code signature in: /Users/axon/CopyQ/build/_CPack_Packages/Darwin/DragNDrop/copyq-6.0.1-15-gff4f6705-Darwin/CopyQ.app/Contents/PlugIns/platformthemes/libqxdgdesktopportal.dylib
/Library/Developer/CommandLineTools/usr/bin/install_name_tool: warning: changes being made to the file will invalidate the code signature in: /Users/axon/CopyQ/build/_CPack_Packages/Darwin/DragNDrop/copyq-6.0.1-15-gff4f6705-Darwin/CopyQ.app/Contents/PlugIns/styles/libqmacstyle.dylib
/Library/Developer/CommandLineTools/usr/bin/install_name_tool: warning: changes being made to the file will invalidate the code signature in: /Users/axon/CopyQ/build/_CPack_Packages/Darwin/DragNDrop/copyq-6.0.1-15-gff4f6705-Darwin/CopyQ.app/Contents/Frameworks/QtTest.framework/Versions/5/QtTest
/Library/Developer/CommandLineTools/usr/bin/install_name_tool: warning: changes being made to the file will invalidate the code signature in: /Users/axon/CopyQ/build/_CPack_Packages/Darwin/DragNDrop/copyq-6.0.1-15-gff4f6705-Darwin/CopyQ.app/Contents/Frameworks/libvorbis.0.dylib
/Library/Developer/CommandLineTools/usr/bin/install_name_tool: warning: changes being made to the file will invalidate the code signature in: /Users/axon/CopyQ/build/_CPack_Packages/Darwin/DragNDrop/copyq-6.0.1-15-gff4f6705-Darwin/CopyQ.app/Contents/Frameworks/libcanberra.0.dylib
/Library/Developer/CommandLineTools/usr/bin/install_name_tool: warning: changes being made to the file will invalidate the code signature in: /Users/axon/CopyQ/build/_CPack_Packages/Darwin/DragNDrop/copyq-6.0.1-15-gff4f6705-Darwin/CopyQ.app/Contents/Frameworks/libogg.0.dylib
/Library/Developer/CommandLineTools/usr/bin/install_name_tool: warning: changes being made to the file will invalidate the code signature in: /Users/axon/CopyQ/build/_CPack_Packages/Darwin/DragNDrop/copyq-6.0.1-15-gff4f6705-Darwin/CopyQ.app/Contents/Frameworks/libltdl.7.dylib
/Library/Developer/CommandLineTools/usr/bin/install_name_tool: warning: changes being made to the file will invalidate the code signature in: /Users/axon/CopyQ/build/_CPack_Packages/Darwin/DragNDrop/copyq-6.0.1-15-gff4f6705-Darwin/CopyQ.app/Contents/Frameworks/libvorbisfile.3.dylib
/Library/Developer/CommandLineTools/usr/bin/install_name_tool: warning: changes being made to the file will invalidate the code signature in: /Users/axon/CopyQ/build/_CPack_Packages/Darwin/DragNDrop/copyq-6.0.1-15-gff4f6705-Darwin/CopyQ.app/Contents/Frameworks/QtMacExtras.framework/Versions/5/QtMacExtras
/Library/Developer/CommandLineTools/usr/bin/install_name_tool: warning: changes being made to the file will invalidate the code signature in: /Users/axon/CopyQ/build/_CPack_Packages/Darwin/DragNDrop/copyq-6.0.1-15-gff4f6705-Darwin/CopyQ.app/Contents/Frameworks/QtTextToSpeech.framework/Versions/5/QtTextToSpeech
/Library/Developer/CommandLineTools/usr/bin/install_name_tool: warning: changes being made to the file will invalidate the code signature in: /Users/axon/CopyQ/build/_CPack_Packages/Darwin/DragNDrop/copyq-6.0.1-15-gff4f6705-Darwin/CopyQ.app/Contents/Frameworks/QtXml.framework/Versions/5/QtXml
/Library/Developer/CommandLineTools/usr/bin/install_name_tool: warning: changes being made to the file will invalidate the code signature in: /Users/axon/CopyQ/build/_CPack_Packages/Darwin/DragNDrop/copyq-6.0.1-15-gff4f6705-Darwin/CopyQ.app/Contents/Frameworks/libKF5ConfigCore.5.87.0.dylib
/Library/Developer/CommandLineTools/usr/bin/install_name_tool: warning: changes being made to the file will invalidate the code signature in: /Users/axon/CopyQ/build/_CPack_Packages/Darwin/DragNDrop/copyq-6.0.1-15-gff4f6705-Darwin/CopyQ.app/Contents/Frameworks/libKF5CoreAddons.5.87.0.dylib
/Library/Developer/CommandLineTools/usr/bin/install_name_tool: warning: changes being made to the file will invalidate the code signature in: /Users/axon/CopyQ/build/_CPack_Packages/Darwin/DragNDrop/copyq-6.0.1-15-gff4f6705-Darwin/CopyQ.app/Contents/Frameworks/libKF5Notifications.5.87.0.dylib
/Library/Developer/CommandLineTools/usr/bin/install_name_tool: warning: changes being made to the file will invalidate the code signature in: /Users/axon/CopyQ/build/_CPack_Packages/Darwin/DragNDrop/copyq-6.0.1-15-gff4f6705-Darwin/CopyQ.app/Contents/Frameworks/libKF5WindowSystem.5.87.0.dylib
CPack: Create package
CPack: - package: /Users/axon/CopyQ/build/copyq-6.0.1-15-gff4f6705-Darwin.dmg generated.

As I said in the beginning, now while being on the build dir, if I try to run: ./CopyQ.app/Contents/MacOS/CopyQ --version, I get:

CopyQ Clipboard Manager 6.0.1-15-gff4f6705
Qt: 5.15.2
KNotifications: 5.87.0
Compiler: GCC
Arch: arm64-little_endian-lp64
OS: macOS 12.2

Here is the tree logs for ./CopyQ.app if it's helpful:

Tree hierarchy
CopyQ.app/
└── Contents
  ├── Info.plist
  ├── MacOS
     └── CopyQ
  └── Resources
      ├── icon.icns
      └── translations
          ├── copyq_ar.qm
          ├── and many more!!!!

So this isn't the full application, but ./_CPack_Packages/Darwin/DragNDrop/copyq-6.0.1-15-gff4f6705-Darwin/CopyQ.app is. For some reason ./_CPack_Packages/Darwin/DragNDrop/copyq-6.0.1-15-gff4f6705-Darwin/CopyQ.app/Contents/MacOS/CopyQ binary crashes with fish: Job 1, './_CPack_Packages/Darwin/Drag...' terminated by signal SIGKILL (Forced quit). I'm not sure how to trace binaries in MacOS yet, heard about dtrace, gotta try that.

I had also tried building 6.0.1-gf4773644, which is the same version as in the CopyQ x86_64 latest release at 1 but made no difference.

Today I head back to using the x86(intel) version from 1 since that just works with one drawback of the rosetta translation 😅

Lastly, thank you for your time 🙏

Footnotes

  1. https://github.com/hluk/CopyQ/releases 2

@hluk
Copy link
Owner

hluk commented Feb 12, 2022

Are the plugins built? E.g. is there plugins/libitemencrypted.so in the build directory (or maybe in different subdirectory)?

@axonasif
Copy link
Contributor Author

axonasif commented Feb 12, 2022

Are the plugins built? E.g. is there plugins/libitemencrypted.so in the build directory (or maybe in different subdirectory)?

Yes

axon@MacBook-Air ~/C/build (master)> tree -L 2 plugins
plugins
├── CMakeFiles
├── cmake_install.cmake
├── itemencrypted
   ├── CMakeFiles
   ├── cmake_install.cmake
   ├── itemencrypted_autogen
   └── ui_itemencryptedsettings.h
├── itemfakevim
   ├── CMakeFiles
   ├── cmake_install.cmake
   ├── itemfakevim.qrc.depends
   ├── itemfakevim_autogen
   ├── qrc_itemfakevim.cpp
   └── ui_itemfakevimsettings.h
├── itemimage
   ├── CMakeFiles
   ├── cmake_install.cmake
   ├── itemimage_autogen
   └── ui_itemimagesettings.h
├── itemnotes
   ├── CMakeFiles
   ├── cmake_install.cmake
   ├── itemnotes_autogen
   └── ui_itemnotessettings.h
├── itempinned
   ├── CMakeFiles
   ├── cmake_install.cmake
   └── itempinned_autogen
├── itemsync
   ├── CMakeFiles
   ├── cmake_install.cmake
   ├── itemsync_autogen
   └── ui_itemsyncsettings.h
├── itemtags
   ├── CMakeFiles
   ├── cmake_install.cmake
   ├── itemtags_autogen
   └── ui_itemtagssettings.h
├── itemtext
   ├── CMakeFiles
   ├── cmake_install.cmake
   ├── itemtext_autogen
   └── ui_itemtextsettings.h
├── libitemencrypted.so
├── libitemfakevim.so
├── libitemimage.so
├── libitemnotes.so
├── libitempinned.so
├── libitemsync.so
├── libitemtags.so
└── libitemtext.so

25 directories, 26 files
axon@MacBook-Air ~/C/build (master)> tree -L 2 _CPack_Packages/Darwin/DragNDrop/copyq-6.0.1-15-gff4f6705-Darwin/CopyQ.app/Contents/PlugIns/
_CPack_Packages/Darwin/DragNDrop/copyq-6.0.1-15-gff4f6705-Darwin/CopyQ.app/Contents/PlugIns/
├── bearer
   └── libqgenericbearer.dylib
├── copyq
   ├── libitemencrypted.so
   ├── libitemfakevim.so
   ├── libitemimage.so
   ├── libitemnotes.so
   ├── libitempinned.so
   ├── libitemsync.so
   ├── libitemtags.so
   └── libitemtext.so
├── generic
   └── libqtuiotouchplugin.dylib
├── iconengines
   └── libqsvgicon.dylib
├── imageformats
   ├── libqgif.dylib
   ├── libqicns.dylib
   ├── libqico.dylib
   ├── libqjpeg.dylib
   ├── libqmacheif.dylib
   ├── libqmacjp2.dylib
   ├── libqsvg.dylib
   ├── libqtga.dylib
   ├── libqtiff.dylib
   ├── libqwbmp.dylib
   └── libqwebp.dylib
├── platforminputcontexts
   └── libqtvirtualkeyboardplugin.dylib
├── platforms
   ├── libqcocoa.dylib
   ├── libqminimal.dylib
   ├── libqoffscreen.dylib
   └── libqwebgl.dylib
├── platformthemes
   └── libqxdgdesktopportal.dylib
├── qmltooling
   ├── libqmldbg_debugger.dylib
   ├── libqmldbg_inspector.dylib
   ├── libqmldbg_local.dylib
   ├── libqmldbg_messages.dylib
   ├── libqmldbg_native.dylib
   ├── libqmldbg_nativedebugger.dylib
   ├── libqmldbg_preview.dylib
   ├── libqmldbg_profiler.dylib
   ├── libqmldbg_quickprofiler.dylib
   ├── libqmldbg_server.dylib
   └── libqmldbg_tcp.dylib
└── styles
    └── libqmacstyle.dylib

10 directories, 40 files

@axonasif
Copy link
Contributor Author

axonasif commented Feb 12, 2022

@hluk I think the issue is when cpack does the final linking stuff, invalidating the signatures.
https://gitlab.kitware.com/cmake/cmake/-/issues/21854

How do we fix it? Should I try to follow the proposed workaround in the issue above?

Update: Doesn't work, I had tried to put set(CMAKE_XCODE_ATTRIBUTE_OTHER_CODE_SIGN_FLAGS "-o linker-signed") on the project CMakeLists.txt and also had tried by passing in the command line -DCMAKE_XCODE_ATTRIBUTE_OTHER_CODE_SIGN_FLAGS="-o linker-signed"

Please keep in mind that I have no idea about C++ development and cmake.

@axonasif
Copy link
Contributor Author

axonasif commented Feb 12, 2022

Here is the CopyQ binary crash log with/without the workaround flags:

-------------------------------------
Translated Report (Full Report Below)
-------------------------------------

Process:               CopyQ [23165]
Path:                  /Users/USER/*/CopyQ.app/Contents/MacOS/CopyQ
Identifier:            io.github.hluk.CopyQ
Version:               6.0 (6.0.1-15-gff4f6705)
Code Type:             ARM-64 (Native)
Parent Process:        fish [3409]
Responsible:           Terminal [579]
User ID:               501

Date/Time:             2022-02-12 21:43:11.3667 +0600
OS Version:            macOS 12.2 (21D49)
Report Version:        12
Anonymous UUID:        49966BE9-A3A7-C70A-F5F9-15BF3E09D134

Sleep/Wake UUID:       D4624B63-571C-40C2-9787-0DB458699042

Time Awake Since Boot: 27000 seconds
Time Since Wake:       9996 seconds

System Integrity Protection: enabled

Crashed Thread:        0

Exception Type:        EXC_BAD_ACCESS (SIGKILL (Code Signature Invalid))
Exception Codes:       UNKNOWN_0x32 at 0x00000001034b0000
Exception Codes:       0x0000000000000032, 0x00000001034b0000
Exception Note:        EXC_CORPSE_NOTIFY

Termination Reason:    Namespace CODESIGNING, Code 2 

@hluk hluk added help wanted Needs a volunteer to investigate/implement the issue macOS Relates to macOS labels Feb 13, 2022
@axonasif
Copy link
Contributor Author

Hey @hluk! I was able to workaround it by doing the following in my build dir:

codesign --force --deep --sign - $PWD/_CPack_Packages/Darwin/DragNDrop/copyq-*-Darwin/CopyQ.app

Will update the docs too 👍
Thanks for sticking along with me.

hluk pushed a commit that referenced this issue Jul 29, 2022
I ran into the same problem as bug #1903, and the workaround proposed by @axonasif worked for me. 
This change simply tries to describe that workaround in the docs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug help wanted Needs a volunteer to investigate/implement the issue macOS Relates to macOS
Projects
None yet
Development

No branches or pull requests

2 participants