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

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

Closed
5 of 8 tasks
Tracked by #6774
claucambra opened this issue May 10, 2024 · 1 comment · Fixed by #6830
Closed
5 of 8 tasks
Tracked by #6774

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

claucambra opened this issue May 10, 2024 · 1 comment · Fixed by #6830

Comments

@claucambra
Copy link
Collaborator

claucambra commented May 10, 2024

⚠️ 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?

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

Nextcloud Server logs

No response

Additional info

No response

@claucambra
Copy link
Collaborator Author

I finally got the app bundle to build, but only after building through craft. A lot of the plugin libs (e.g. libqcocoa) need to be manually codesigned or the system will reject them. Will need to figure out a systematic way to do this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant