Setup Details:
- ProductName: macOS
- ProductVersion: 11.5.1
- BuildVersion: 20G80
- Platform: arm64
- Rosetta2 emulator is installed.
My Network extension app having below entitlement is not working on many M1 Macbooks. Behavior is very random, on some M1 systems it does work without any issue and on few system it never works:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.temporary-exception.files.absolute-path.read-write</key>
<array>
<string>/private/var/db/mds/</string>
<string>/usr/local/myorg/Mcp/bin/</string>
<string>/usr/local/myorg/StatefulFirewall/bin/</string>
</array>
<key>com.apple.developer.endpoint-security.client</key>
<true/>
<key>com.apple.developer.networking.networkextension</key>
<array>
<string>app-proxy-provider-systemextension</string>
<string>content-filter-provider-systemextension</string>
</array>
<key>com.apple.security.app-sandbox</key>
<true/>
<key>com.apple.security.application-groups</key>
<array>
<string>group.com.myorg.endpoint</string>
</array>
<key>com.apple.security.automation.apple-events</key>
<true/>
<key>com.apple.security.files.user-selected.read-write</key>
<true/>
<key>com.apple.security.network.server</key>
<true/>
<key>com.apple.security.network.client</key>
<true/>
</dict>
</plist>
Error in system extension:
2021-09-30 12:41:53.049345-0400 0x361f5b Error 0x0 60247 0 taskgated-helper: (ConfigurationProfiles) [com.apple.ManagedClient:ProvisioningProfiles] com.myorg.CMF.networkextension: Unsatisfied entitlements: com.apple.security.application-groups
More logs are attached:
At one instance, the package which is working on many M1 machines, crashed with 'EXC_CRASH (Code Signature Invalid)' exception:
Process: com.myorg.CMF.networkextension [503]
Path: /Library/SystemExtensions/*/com.myorg.CMF.networkextension
Identifier: com.myorg.CMF.networkextension
Version: ???
Code Type: X86-64 (Translated)
Parent Process: launchd [1]
Responsible: com.myorg.CMF.networkextension [503]
User ID: 0
Date/Time: 2021-09-30 12:55:27.365 -0400
OS Version: macOS 11.5.1 (20G80)
Report Version: 12
Anonymous UUID: BBAF0CEC-BDE6-1239-9E5D-9099403D7616
Time Awake Since Boot: 63 seconds
System Integrity Protection: enabled
Crashed Thread: Unknown
Exception Type: EXC_CRASH (Code Signature Invalid)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Termination Reason: Namespace CODESIGNING, Code 0x1
kernel messages:
VM Regions Near 0 (cr2):
-->
mapped file 102b7f000-102baf000 [ 192K] r-x/r-x SM=COW Object_id=2f6c9e1b
Backtrace not available
Unknown thread crashed with ARM Thread State (64-bit):
..................
- Could you please help me understand why the same package which is working fine on Intel Mac machines and also working fine on some of M1 Mac machine will fail on other M1 mac machines?
- What could we be doing wrong here?