Network Extension with "Legacy Build System"

How do I get a network extension to actually install and work when using the "Legacy Build System"? Right now, I'm getting the error message "Invalid code signature or missing entitlments". Mind you, I'm also containing it's provisioning profile inside the Contents wrapper.

How do I get a network extension to actually install and work when using the "Legacy Build System"?

Is there an issue with updating to the New Build System, see Choose the build system.

Also, code signature errors or missing entitlements issues are typically agnostic of the build system that is being used. Double check that the provisioning profile and the entitlements file match up. Then, once you app is built, make sure it's run from the /Applications folder.

Matt Eaton
DTS Engineering, CoreOS
meaton3@apple.com
Is there an issue with updating to the New Build System, see Choose the build system.

Short answer: Yes, due to other legacy issues inside the application.

I just know that empirically, I don't get these errors when I do compile it with the New Build System.

More specifically, it doesn't work when I put it in the "Legacy Build System" AND have the provisioning profiles included in the Contents folder, but it does work when I put it in the "New Build System".

Something is odd here; Can you copy the entitlements that you are using from your container app and Network Extension and paste them to this thread. Then, can you copy the entitlements that embedded in all of your provisioning profiles (container app and network extension) to this thread for comparison?

Matt Eaton
DTS Engineering, CoreOS
meaton3@apple.com

I took out the entitlements from the project file so that it would compile without a profile being present directly. I have a feeling that it has something to do with it.

I took out the entitlements from the project file so that it would compile without a profile being present directly. I have a feeling that it has something to do with it.

If you are using a Network Extension then you will need a to at least have the appropriate entitlement for the specific Network Extension that you are using. For example, if you are using a NETransparentProxyProvider as a Network System Extension:

<key>com.apple.developer.networking.networkextension</key>
<array>
	<string>app-proxy-provider</string>
</array>
<key>com.apple.developer.system-extension.install</key>
<true/>

Matt Eaton
DTS Engineering, CoreOS
meaton3@apple.com
Network Extension with "Legacy Build System"
 
 
Q