desktop icon indicating copy to clipboard operation
desktop copied to clipboard

[Bug]: macOS App Bundle broken on master (Qt 6)

Open claucambra opened this issue 9 months ago • 1 comments

⚠️ Before submitting, please verify the following: ⚠️

Bug description

A binary-only build of the client works great, but upon trying to run the app bundle there are major code signing issues that prevent running of the client when using our current codesigning procedures. These are related to the codesigning of the Qt 6 frameworks:

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

Process:               Nextcloud [28514]
Path:                  /Users/USER/Downloads/*/Nextcloud.app/Contents/MacOS/Nextcloud
Identifier:            com.nextcloud.desktopclient
Version:               3.13.50git (3.13.50.0)
Code Type:             ARM-64 (Native)
Parent Process:        launchd [1]
User ID:               501

Date/Time:             2024-05-10 02:31:50.6785 +0800
OS Version:            macOS 14.2.1 (23C71)
Report Version:        12
Anonymous UUID:        36C661B1-A848-29EE-3FBC-B141D36B1490

Sleep/Wake UUID:       D10C636F-8A42-473A-8E66-1F11EE528BBC

Time Awake Since Boot: 890000 seconds
Time Since Wake:       21278 seconds

System Integrity Protection: enabled

Crashed Thread:        0

Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000

Termination Reason:    Namespace DYLD, Code 1 Library missing
Library not loaded: @rpath/QtQuickTemplates2.framework/Versions/A/QtQuickTemplates2
Referenced from: <7186D1B0-9828-3D4B-BDEC-FA51937DB24B> /Users/claucambra/Downloads/GitRepos/desktop/build/install/Nextcloud.app/Contents/Frameworks/QtQuickControls2.framework/Versions/A/QtQuickControls2
Reason: tried: '/Users/claucambra/Downloads/GitRepos/desktop/build/install/Nextcloud.app/Contents/Frameworks/QtQuickControls2.framework/Versions/A/../../../QtQuickTemplates2.framework/Versions/A/QtQuickTemplates2' (no such file), '/opt/homebrew/opt/qt6/lib/QtQuickTemplates2.framework/Versions/A/QtQuickTemplates2' (code signature in <CF96B035-1C35-3BF1-8F42-363526C81615> '/opt/homebrew/Cellar/qt/6.7.0_1/lib/QtQuickTemplates2.framework/Versions/A/QtQuickTemplates2' not valid for use in process: mapping process and mapped file (non-platform) have different Team IDs), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/opt/qt6/lib/QtQuickTemplates2.framework/Versions/A/QtQuickTemplates2' (no such file), '/opt/homebrew/lib/QtQu
(terminated at launch; ignore backtrace)

@tobiasKaminsky

Steps to reproduce

  1. Build client with app bundle flag enabled
  2. Ninja install
  3. Codesign the app bundle as usual
  4. Try to run

Expected behavior

App should launch

Which files are affected by this bug

N/A

Operating system

Mac OS

Which version of the operating system you are running.

macOS 14.4

Package

Compiled it myself

Nextcloud Server version

N/A

Nextcloud Desktop Client version

Master

Is this bug present after an update or on a fresh install?

Fresh desktop client install

Are you using the Nextcloud Server Encryption module?

Encryption is Enabled

Are you using an external user-backend?

  • [X] Default internal user-backend
  • [ ] LDAP/ Active Directory
  • [ ] SSO - SAML
  • [ ] Other

Nextcloud Server logs

No response

Additional info

No response

claucambra avatar May 10 '24 04:05 claucambra