-
Notifications
You must be signed in to change notification settings - Fork 47
Not working on Apple M1 devices #88
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
Comments
Same to me, here's my crash log:
|
Same here |
Me too. |
This helped me. |
I've downloaded the project and compiled myself, but still, on M1 I'm having problems:
As a result, an empty white preview window is shown. I've tried adding a new target that would be sandboxed with permissions, but I miss macOS development and quicklook plugin knowledge to be able to add the cli app into the bundle package and get it executed (maybe if I retake this in the future I can use this post as help https://blog.timac.org/2021/0516-mac-app-store-embedding-a-command-line-tool-using-paths-as-arguments/) |
No problems on m1 for me. Just compiled latest lua/highlight and $ file QLColorCode
QLColorCode: Mach-O universal binary with 2 architectures: [x86_64:Mach-O 64-bit bundle x86_64] [arm64:Mach-O 64-bit bundle arm64]
QLColorCode (for architecture x86_64): Mach-O 64-bit bundle x86_64
QLColorCode (for architecture arm64): Mach-O 64-bit bundle arm64
$ arch
arm64
$ |
@serge-ivamov is it compiling? is it working properly? or both? |
both. |
I found the reason for the blank screen. $ cd ~/Library/QuickLook/QLColorCode.qlgenerator/Contents/Resources/themes
$ ln -s darkness.theme darkplus.theme or edit Common.m for it. P.S. lol, looks like I got highlight from old location (https://github.com/andre-simon/highlight) P.P.S. Found another problem for m1 - bad signing. Just need to resign. codesign -vv ~/Library/QuickLook/QLColorCode.qlgenerator/Contents/MacOS/QLColorCode
codesign -fs - ~/Library/QuickLook/QLColorCode.qlgenerator/Contents/MacOS/QLColorCode
codesign -vv ~/Library/QuickLook/QLColorCode.qlgenerator/Contents/MacOS/QLColorCode
qlmanage -r
qlmanage -r cache
pkill -1 Finder btw adding $ diff -b -C 3 Info.plist.orig Info.plist
*** Info.plist.orig 2021-09-15 12:48:20.000000000 +0400
--- Info.plist 2021-09-15 12:41:28.000000000 +0400
***************
*** 22,27 ****
--- 22,28 ----
<string>com.microsoft.c-sharp</string>
<string>com.microsoft.f-sharp</string>
<string>public.css</string>
+ <string>public.json</string>
<string>com.apple.applescript.script</string>
<string>public.xml</string>
<string>com.apple.property-list</string> |
I made a few adjustments to the build configuration (#91) and went through the pain of getting it signed and notarized. Here is a working universal release for both Apple M1 and 64-bit Intel: https://github.com/jpc/QLColorCode/releases/tag/release-4.1.2%2Bm1 |
@jpc absolute legend, thank you so much! |
@jpc , thank you, it's working👍🏻 |
Probably close. It's working for me on M1. |
Not working in MacOS 12.4, M1Pro.
I added the
|
I get the same errors as massisenergy when attempting to preview |
Probably this repo is abandoned & out of maintenance. For now, I am using QLMarkdown and SourceCodeSyntaxHighlight, which does the job fine (quicklook preview) so far for all my required files. |
M1 Pro,MacOS 12.7 works |
I test many times but it not working on Apple M1 devices
The text was updated successfully, but these errors were encountered: