Extension not found in App bundle: perhaps App is not validly structured

Error when activating system extension Extension not found in App bundle: perhaps App is not validly structured

Did not jump out of the content that requires the user to agree to permissions

What is the bundle id structure of your System Extension? Does your System Extension contain the container app's bundle id with a unique suffix at the end? For example:

# Container App
com.example.apple-samplecode.TransparentProxyTestBed

# Network System Extension
com.example.apple-samplecode.TransparentProxyTestBed.TransparentProxy
Matt Eaton
DTS Engineering, CoreOS
meaton3@apple.com

Yes, an ID similar to yours

Okay, thank you for confirming.

Regarding:

perhaps App is not validly structured

Can you provide any more information on why you think the app is not structured correctly?

Matt Eaton
DTS Engineering, CoreOS
meaton3@apple.com

Double check that the String in [OSSystemExtensionRequest activationRequestForExtension:@"HERE"... exactly fits the Bundle Identifier of your System Extension. If you are trying to build an Apple Sample (like "SampleEndpointApp") this is not the case by default as Xcode uses a variable in the Bundle ID ${SAMPLE_CODE_DISAMBIGUATOR}), while the one in code is hardcoded.

In my case I had a whitespace in the Network Extension's product name in the build settings. Removing it solved the issue.

Extension not found in App bundle: perhaps App is not validly structured
 
 
Q