anthonygelibert/QLColorCode

Cannot be opened because Apple cannot check it for malicious software

nodingneu opened this issue · 3 comments

When attempting to quicklook a file

Screenshot 2022-06-06 at 11 23 20

To let your mac know that you trust the app you must open it once from the finder. To do so, go to ~/Library/QuickLook/QLColorCode.qlgenerator/Contents/MacOS/QLColorCode (tip: use the "go to" feature of the finder using cmd+shift+g to go directly into the app package), right-click on it and select "Open". You will be asked for confirmation, after that the system will remember you allowed this program to run.

@prShadoko Thanks! However, I did this, and (on macOS 12.3.1, ARM arch) am getting:

Failed to execute process '/Users/username/Library/QuickLook/QLColorCode.qlgenerator/Contents/MacOS/QLColorCode'. Reason:
exec: Exec format error
The file '/Users/username/Library/QuickLook/QLColorCode.qlgenerator/Contents/MacOS/QLColorCode' is marked as an executable but could not be run by the operating system.
Hoasd commented

Same for me. Obviously, the binary is only for X86 compiled:

file /Users/home/Library/QuickLook/QLColorCode.qlgenerator/Contents/MacOS/QLColorCode
/Users/home/Library/QuickLook/QLColorCode.qlgenerator/Contents/MacOS/QLColorCode: Mach-O 64-bit bundle x86_64

But it should be like this:

file /Applications/RunJS.app/Contents/MacOS/RunJS
/Applications/RunJS.app/Contents/MacOS/RunJS: Mach-O universal binary with 2 architectures: [x86_64:Mach-O 64-bit executable x86_64] [arm64:Mach-O 64-bit executable arm64]
/Applications/RunJS.app/Contents/MacOS/RunJS (for architecture x86_64):	Mach-O 64-bit executable x86_64
/Applications/RunJS.app/Contents/MacOS/RunJS (for architecture arm64):	Mach-O 64-bit executable arm64

But here is another quicklook plugin which works flawless on Apple Silicon.