Hi, can't activate system-extension. in any case getting
Domain=OSSystemExtensionErrorDomain Code=8 "Invalid code signature or missing entitlements"
(sometimes get code = 9)
P.S. In debug running all is working. (The system is asking to activate sysex)
Has to read huge amount of forum, samples, and docs. But no luck
What and how i've tried
steps which i've doing
- #- signing sysextension binaries with Developer ID Application
- #- signing system extension with Developer ID Application
- #- signing application with Developer ID Application
- #- checking all signatures with Developer ID Application
- #- building pkg installer
- #- signing installer with Developer ID Installer
- #- checking signing
- #- sending installer for notarization
- #- waiting for installer verification
- #- after success I call stapler staple
- #- When calling sysex activation I get
(But the problem is persist when i've try to move signed app to application folder, or try to notarize zip) or in any case which possibly mention on forum, i've get
sign command sample
codesign --force --timestamp --options runtime --sign "Developer ID ***"
Also has to tried with ** --deep,** but no luck.
Result of steps descrribed here:
-
App has System Extension compatibility, Sysex haven't System Extension.
-
App is used the same bundle id as in AppStore (also has to tried separate one, but no luck)
In console just two informative message regarding it, but nothing specific
default 01:08:04.745310+0200 sysextd client activation request for com.company.appName.PacketTunnelMacExternal
default 01:08:04.745330+0200 sysextd attempting to realize extension with identifier com.company.appName.PacketTunnelMacExternal
default 01:08:04.750996+0200 appName-Mac-External [0x13a9496f0] invalidated because the current process cancelled the connection by calling xpc_connection_cancel()
Could you please assits with solve issue?
Just so we’re on the same page, error 8 is OSSystemExtensionErrorCodeSignatureInvalid
. My experience is that, when the System Extensions framework returns that error, it logs more details to the system log. I recommend you look there. See Your Friend the System Log for advice on how to use the system log effectively.
I recommend that you set up a VM to test this. That way you can be sure that your development state isn’t interfering with the test. See Testing a Notarised Product.
I have general advice on how to sign and package macOS software in:
I have advice specific to NE sysexes in the Exporting a Developer ID Network Extension DevForums post.
IMPORTANT Pay attention to the provisioning profile part of that. The steps in your post didn’t mention profiles at all, which isn’t a good sign.
Apropos those steps, be aware that steps 1 and 2 are redundant. When signing bundled code, you only need to sign the bundle.
Also has to tried with --deep, but no luck.
Don’t do that. See --deep
Considered Harmful.
While testing this, I recommend that you skip the installer. There’s nothing fundamentally wrong with using an installer to install your app, but it’s an extra step that could go wrong. So, simplify the problem to:
-
Notarise a zip archive.
-
Once you have the ticket, unpack the zip, staple the app, and then repack the zip.
-
Copy that zip to your test VM in a way that sets quarantine.
-
Unpack it there.
-
Drag the app to the Applications folder.
-
Launch the app and run your test.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"