配置app group文件

This commit is contained in:
anlicheng 2026-04-03 16:22:13 +08:00
parent 95fe9c4d35
commit ab0ee1ccf9
3 changed files with 2 additions and 9 deletions

View File

@ -10,7 +10,7 @@
<true/> <true/>
<key>com.apple.security.application-groups</key> <key>com.apple.security.application-groups</key>
<array> <array>
<string>$(TeamIdentifierPrefix)</string> <string>group.com.jihe.punchnetmac</string>
</array> </array>
<key>com.apple.security.network.client</key> <key>com.apple.security.network.client</key>
<true/> <true/>

View File

@ -110,13 +110,6 @@ class AppContext {
try await self.vpnManager.enableVpn(options: options) try await self.vpnManager.enableVpn(options: options)
self.networkContext = context self.networkContext = context
self.vpnOptions = options self.vpnOptions = options
// TODO
Task {
try await Task.sleep(for: .seconds(5))
let resp = try await self.vpnManager.sendMessage("hello vpn".data(using: .utf8)!)
NSLog("resp: \(String(data: resp, encoding: .utf8))")
}
} }
// //

View File

@ -14,7 +14,7 @@
<true/> <true/>
<key>com.apple.security.application-groups</key> <key>com.apple.security.application-groups</key>
<array> <array>
<string>$(TeamIdentifierPrefix)</string> <string>group.com.jihe.punchnetmac</string>
</array> </array>
<key>com.apple.security.files.user-selected.read-only</key> <key>com.apple.security.files.user-selected.read-only</key>
<true/> <true/>