Endpoint Security sample code not able to activate extension

Hi Guys,

I downloaded the endpoint security sample code and used my developer team id to sign the executables, but it appears the system is not able to load the extension.

I get following message in the console:
Request to activate com.example.apple-samplecode.SampleEndpointApp.Extension failed with error Error Domain=OSSystemExtensionErrorDomain Code=4 "Extension not found in App bundle" UserInfo={NSLocalizedDescription=Extension not found in App bundle}

One thing to note here is that , my systemextension name is com.example.apple-samplecode.SampleEndpointAppXXXXXX.Extension
which got generated when I added my dev team to the project. But the app is still looking for com.example.apple-samplecode.SampleEndpointApp.Extension which is incorrect.
As per the docs, the systemextension has to match the $productbundleidentifier which it does in my case, but the activation is failing.

Can you please help me in getting this to work?







Change the bundleID in the app's ViewController.m i.e activationRequestForExtension:@"com.example.apple-samplecode.SampleEndpointApp.Extension" to activationRequestForExtension:@"<new-bundle-ID>"
Endpoint Security sample code not able to activate extension
 
 
Q