应用程序无法访问应用程序发布者的 iOS 钥匙串(TeamId 为空)。可能是什么问题?

问题描述 投票:0回答:1

你好,我创建了 IdentityClient

`     public MSAuthenticator()
        {
            IdentityClient = PublicClientApplicationBuilder
                    .CreateWithApplicationOptions(appOptions)
                    .WithExperimentalFeatures(true)
                    .WithLogging(_logger)
                    .WithIosKeychainSecurityGroup("com.microsoft.adalcache")
                    .Build();
        }`

并将自定义 Entitlements.plist 添加到 .csproj

`<?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>aps-environment</key>
    <string>development</string>
    <key>keychain-access-groups</key>
    <array>
        <string>$(AppIdentifierPrefix)com.microsoft.adalcache</string>
    </array>
</dict>
</plist>`

错误代码=cannot_access_publisher_keychain 我在 VS Code 上仍然遇到错误,请帮忙!!! 应用程序无法访问应用程序发布者的 iOS 钥匙串(TeamId 为 null)。这是在同一发布者的应用程序之间启用单点登录所必需的。这是 iOS 配置问题。有关启用钥匙串访问的更多详细信息,请参阅 https://aka.ms/msal-net-enable-keychain-access

c# ios xamarin.ios maui maui-ios
1个回答
0
投票

清除 Visual Code 中的缓存解决了我的问题

© www.soinside.com 2019 - 2024. All rights reserved.