Skip to content
This repository has been archived by the owner on Sep 23, 2021. It is now read-only.

macOS: Application cannot be opened because the developer cannot be verified #136

Open
appdev44 opened this issue Dec 20, 2020 · 0 comments

Comments

@appdev44
Copy link

When running sudo-prompt on OS X 10.15.7 from nw.js application - I get a pop-up "Application cannot be opened because the developer cannot be verified - macOS cannot verify that this app is free from malware".
This works as expected on OS X 10.14.x and 10.15.2 - only started getting this issue from 10.15.6.

from the console - 2 sets of logs:
Set 1:
default 19:43:57.278634+1100 kernel build_userspace_exit_reason: illegal flags passed from userspace (some masked off) 0x141, ns: 9, code 0x8
default 19:43:57.278763+1100 kernel Sleep interrupted, signal 0x100
default 19:43:57.278779+1100 kernel Security policy would not allow process: 1066, /private/var/folders/rj/s1dv0xms3gl8vd2l460v5mth0000gn/T/d5c5ea7f4d2e37052cc23520daf9a0b8/Application.app/Contents/MacOS/applet
error 19:43:57.278599+1100 syspolicyd Terminating process due to Gatekeeper rejection: 1066,
-[AppleSecurity_Pref _readCaspianLastDeniedApp] [843] -- _lastRejectedURL: file:///private/var/folders/rj/s1dv0xms3gl8vd2l460v5mth0000gn/T/d5c5ea7f4d2e37052cc23520daf9a0b8/Application.app/
default 19:43:57.325537+1100 com.apple.preference.security.remoteservice

Set 2:
default 19:43:48.832096+1100 lsd Non-fatal error enumerating at , continuing: Error Domain=NSCocoaErrorDomain Code=260 "The file “PlugIns” couldn’t be opened because there is no such file." UserInfo={NSURL=PlugIns/ -- file:///var/folders/rj/s1dv0xms3gl8vd2l460v5mth0000gn/T/d5c5ea7f4d2e37052cc23520daf9a0b8/Application.app/Contents/, NSFilePath=/var/folders/rj/s1dv0xms3gl8vd2l460v5mth0000gn/T/d5c5ea7f4d2e37052cc23520daf9a0b8/Application.app/Contents/PlugIns, NSUnderlyingError=0x7f91c9554200 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}
default 19:43:48.832168+1100 lsd - 45683955: Checking whether application is managed at file:///var/folders/rj/s1dv0xms3gl8vd2l460v5mth0000gn/T/d5c5ea7f4d2e37052cc23520daf9a0b8/Application.app//com.sudo-prompt
error 19:43:48.833292+1100 lsd cannot open file at line 43353 of [378230ae7f]
error 19:43:48.833326+1100 lsd os_unix.c:43353: (2) open(/var/db/DetachedSignatures) - No such file or directory

In system preferences - Security and Privacy - it shows up under "allow apps downloaded from" - and has an "open Anyway" button - but this does not help, since it will be a difference "process" each time you run it.
Also get the issue on macOS Big Sur
thanks

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

No branches or pull requests

1 participant