fix(client): 去 dev 旁路 + 修 macOS keychain -34018 [tsk__bm21nctbhWF]

1. 去 dev 旁路:删除 auth_screen.dart 中 test@pangolin.dev 预填 + devLogin
   跳过后端分支,以及 auth_provider.dart 的 devLogin() 方法。

2. 修 keychain -34018(errSecMissingEntitlement):
   在 DebugProfile.entitlements / Release.entitlements 中添加
   keychain-access-groups($(AppIdentifierPrefix)com.pangolin.pangolinVpn),
   使 flutter_secure_storage 的 Data Protection Keychain API 获得正确 entitlement。

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
wangjia
2026-06-16 13:21:38 +08:00
parent fe16f89bc3
commit f3cc2dfc2d
4 changed files with 10 additions and 26 deletions
@@ -10,5 +10,10 @@
<true/>
<key>com.apple.security.network.server</key>
<true/>
<!-- flutter_secure_storage: Data Protection Keychain 需要此 entitlement,否则返回 -34018 -->
<key>keychain-access-groups</key>
<array>
<string>$(AppIdentifierPrefix)com.pangolin.pangolinVpn</string>
</array>
</dict>
</plist>
+5
View File
@@ -6,5 +6,10 @@
<false/>
<key>com.apple.security.network.client</key>
<true/>
<!-- flutter_secure_storage: Data Protection Keychain 需要此 entitlement,否则返回 -34018 -->
<key>keychain-access-groups</key>
<array>
<string>$(AppIdentifierPrefix)com.pangolin.pangolinVpn</string>
</array>
</dict>
</plist>