HI,
Since I'm experiencing the exact same issue, I thought it would be okay to tag onto this post...
So for berevity, 'ditto' on pradippradip original post.
I'm also albe to reproduce this with a VM running 10.14.5.
The odd thing is, if the postinstall script fails because of this reason, then the user sees the yellow triangle warning that their installation failed.
Running the kexutil -nt command, the results are a bit strange in that, the output mentions a different kext file other than the kext I'm inspecting. And by other, I don't mean the one copied to the staging folder. I'm referring to a kext on my machine dated back to 2014 that is for USB functionality (AX88179_178A.kext).
The output is as follows: The bolded text is my confusion. Why would the kexutil -nt command try to stage a different kext file unrelated to my mykext.kext?
Has anyone else seen this?
/Library/StagedExtensions/Library/Extensions/69086123-45A7-4788-B687-6D1009D4EF9C.kext does not appear in strict exception list for architecture: x86_64
Untrusted kexts are not allowed
Kext with invalid signature (-67007) denied: /Library/StagedExtensions/Library/Extensions/69086123-45A7-4788-B687-6D1009D4EF9C.kext
Bundle (/Library/Extensions/AX88179_178A.kext) failed to validate, deleting: /Library/StagedExtensions/Library/Extensions/69086123-45A7-4788-B687-6D1009D4EF9C.kext
Unable to stage kext (/Library/Extensions/AX88179_178A.kext)to secure location.
Kext rejected due to system policy: <OSKext 0x7fdf6e78c900 [0x7fffab3ee8e0]> { URL = "file:///Library/StagedExtensions/private/var/folders/vq/hv4nc70n6lbbvd_f2zvsh5j5fy3ckn/T/TemporaryItems/(A%20Document%20Being%20Saved%20By%20XCBBuildService)/CleanBuildFolderInProgress/System/Library/Extensions/mykext.kext/", ID = "com.my.company" }
Kext rejected due to system policy: <OSKext 0x7fdf6e78c900 [0x7fffab3ee8e0]> { URL = "file:///Library/StagedExtensions/private/var/folders/vq/hv4nc70n6lbbvd_f2zvsh5j5fy3ckn/T/TemporaryItems/(A%20Document%20Being%20Saved%20By%20XCBBuildService)/CleanBuildFolderInProgress/System/Library/Extensions/mykext.kext/", ID = "com.my.company" }
Diagnostics for /private/var/folders/vq/hv4nc70n6lbbvd_f2zvsh5j5fy3ckn/T/TemporaryItems/(A Document Being Saved By XCBBuildService)/CleanBuildFolderInProgress/System/Library/Extensions/mykext.kext: