For future reference:
Working solution is to have two entitlements files, one of them having "-systemextension" added where needed and build settings setup in a way, that will use one file for debug build and other for release.
Topic:
Code Signing
SubTopic:
Entitlements
Tags: