-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Add OS X 11 (Big Sur) ARM support #4934
Comments
Pretty much a WONTFIX until Qt decides to support ARM and there is a Homebrew package for it. |
Well, Qt will certainly be supported natively under Apple Silicon / ARM. Until this time comes, Rosetta 2 will have it covered. From the mailing list: https://lists.qt-project.org/pipermail/interest/2020-June/035445.html
|
I wonder if that will finally result in some basic style fixes. Qt on macOS is horrible. We will support Big Sur when a) Qt does |
Now that there appears to be a Qt5 for arm64, does that change things? |
Not yet, but you can totally run KeePassXC throughout Rosetta. I would even argue that you won't see any major difference. |
💯 Yup, it works perfectly fine with Rosetta. Just trying to get to a native build 😁 |
Successfully built KeePassXC 2.6.2 on an apple silicon device with following instructions:
Have no idea why the app icon is missing, and why I have to codesign again to make app run. |
The icon is somehow missing: |
Nice work! Thanks for that tip! I was still trying to figure out how to build quazip since Homebrew installs the older 0.9 version Any runtime issues on Apple Silicon? |
Didn't find any issue right now, but I only used basic functionalities.
|
Guess I'll have to buy a Macbook then or cross-compile. The icon is missing, because you didn't package the app and you cannot simply deep-sign everything. That adds the wrong entitlements to the libraries. |
Rebuilt the app with (patched) Quick and dirty patch to diff --git a/release-tool b/release-tool
index d8fc1cf0..0f12cd47 100755
--- a/release-tool
+++ b/release-tool
@@ -949,8 +949,8 @@ build() {
logInfo "Configuring build..."
cmake -DCMAKE_BUILD_TYPE=Release \
- -DCMAKE_OSX_ARCHITECTURES=x86_64 -DCMAKE_INSTALL_PREFIX="${INSTALL_PREFIX}" \
- -DCMAKE_PREFIX_PATH="/usr/local/opt/qt/lib/cmake" \
+ -DCMAKE_OSX_ARCHITECTURES=arm64 -DCMAKE_INSTALL_PREFIX="${INSTALL_PREFIX}" \
+ -DCMAKE_PREFIX_PATH="/opt/homebrew/opt/qt/lib/cmake" \
${CMAKE_OPTIONS} "$SRC_DIR"
logInfo "Compiling and packaging sources..." Then create a new commit otherwise ./release-tool build --version 2.6.2 --plugins all If everything is OK, a dmg bundle will be created in |
After investigated how # pwd in keepassxc source root, app copied to /Application
xcrun codesign --sign - --verbose --deep --options runtime /Applications/KeePassXC.app
xcrun codesign --sign - --verbose --force --options runtime --entitlements share/macosx/keepassxc.entitlements /Applications/KeePassXC.app/Contents/MacOS/KeePassXC Then I got Anyway, seems that ad-hoc code signing won't work. |
Red haring |
No output at all, just exited with status code 0. |
Nope. The permission error is still there. With
With
|
Yes, did Maybe it's just an issue with ad hoc code signing. |
Just use the release-tool to sign. You can specify your own Apple ID. You have to also notarise it, which requires you to accept the Apple publisher terms for both paid and free apps on iTunes Connect first. |
Sign with release-tool: seems OK, with my Apple ID containing a so-called "Apple Development Certificates". |
Summary
Add compatibility for the ARM architecture under OS X
Examples
Context
The text was updated successfully, but these errors were encountered: