Hi,
I want to be able to run a simple NE with SIP on. Based on SimpleFirewall Sysex, run from Xcode It seems to work well, the extension does filter the content, all OK. What is not so good is what I see in the in the logs (SIP enabled):
the taskgated-helper says :
com.jon.SimpleFirewall.SimpleFirewallExtension: Unsatisfied entitlements: com.apple.security.application-groups
Disallowing: com.jon.SimpleFirewall.SimpleFirewallExtension
and the amfid:
Soft-restriction provisioning profile validation failure: No matching provisioning profile
Unsatisfied entitlements key is not type CFString, this should not happen.
Provisioning Profile does not provision soft-restricted entitlements.
They are strange messages consiering the NE is working ..
I'd say that the entitlemetns are ok :
<dict>
<key>com.apple.application-identifier</key>
<string>TEAMID.com.jon.SimpleFirewall</string>
<key>com.apple.developer.networking.networkextension</key>
<array>
<string>content-filter-provider</string>
</array>
<key>com.apple.developer.system-extension.install</key>
<true/>
<key>com.apple.developer.team-identifier</key>
<string>TEAMID.</string>
<key>com.apple.security.app-sandbox</key>
<true/>
<key>com.apple.security.application-groups</key>
<array>
<string>TEAMID..com.jon.SimpleFirewall</string>
</array>
<key>com.apple.security.files.user-selected.read-write</key>
<true/>
<key>com.apple.security.get-task-allow</key>
<true/>
</dict>
<dict>
<key>com.apple.application-identifier</key>
<string>TEAMID.com.jon.SimpleFirewall.SimpleFirewallExtension</string>
<key>com.apple.developer.networking.networkextension</key>
<array>
<string>content-filter-provider</string>
</array>
<key>com.apple.developer.team-identifier</key>
<string>TEAMID</string>
<key>com.apple.security.app-sandbox</key>
<true/>
<key>com.apple.security.application-groups</key>
<array>
<string>TEAMIDcom.jon.SimpleFirewall</string>
</array>
<key>com.apple.security.get-task-allow</key>
<true/>
</dict>
I'm interested as well in making provisioned for all devices so I want to archive it for Developer ID distribution. Including notarization. The archiving stops because Xcode cant find provisions for Network Extensions. To solve it I have created 2 provisions for Distribution by developer ID myself on my account. That helps to andvance in the notarization. It gets approved. Export and run.
The exported notarized App crashes:
taskgated:
rejecting read of { kCFPreferencesAnyApplication, kCFPreferencesAnyUser, kCFPreferencesCurrentHost, no container, managed: 0 } from process 1947 (taskgated-helper) because accessing preferences outside an application's container requires user-preference-read or file-read-data sandbox access
com.jon.SimpleFirewall: Unsatisfied entitlements: com.apple.developer.networking.networkextension
Disallowing: com.jon.SimpleFirewall
amfid:
CPValidateProvisioningDictionariesExtViaBridge returned invalid result: {
success = 0;
}
Failure validating against provisioning profiles: No matching provisioning profile
Unsatisfied entitlements key is not type CFString, this should not happen.
Requirements for restricted entitlements failed to validate, error -67671, requirements: '<private>', error: (null)
Restricted entitlements not validated, bailing out. Error: (null)
/Users/jon.gabilondo/Desktop/SimpleFirewall.app/Contents/MacOS/SimpleFirewall signature not valid: -67671
Pretty big clear errors that I can't fgure out how to fix them .. I'm missing something fundamental.
Thanks in advance.