ios - ADALiiOS :Cannot add a new item in the keychain/O365-iOS-Connect-Swift

标签 ios office365 adal

我目前正在开发一个连接到 Office365 的 iOS 应用程序,目标为 iOS7。使用了以下 pod:

pod 'ADALiOS', '~> 1.2.1'
pod 'Office365/Outlook', '= 0.9.1'
pod 'Office365/Discovery', '= 0.9.1'

当我在模拟器中运行它时一切正常。当我在设备上运行它时,出现“无法在钥匙串(keychain)中添加新项目”错误。

我还尝试了共享钥匙串(keychain)功能,但这并没有改变任何东西。

这是错误消息,它甚至在我从 Github 运行 O365-iOS-Connect-Swift 示例时出现:

2015-06-16 20:44:58.758 O365-iOS-Connect-Swift[574:128561] -[ADAuthenticationBroker webAuthenticationDidCompleteWithURL:][379][main] 2015-06-16 20:44:59.586 O365-iOS-Connect-Swift[574:128676] ADALiOS [2015-06-16 18:44:59 - EEAB650A-32FE-4589-925D-EB9797B89E08] ERROR: Error raised: 11. Additional Information: Domain: ADAuthenticationErrorDomain ProtocolCode:(null) Details:Cannot add a new item in the keychain. Error code: -25243.

ADALiOS 团队的人可以帮助我吗?非常感谢任何提示!

最佳答案

您需要启用钥匙串(keychain)共享并将 com.microsoft.adalcache 添加到您的应用授权中。

关于ios - ADALiiOS :Cannot add a new item in the keychain/O365-iOS-Connect-Swift,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30876085/

相关文章:

outlook - JS可以打开Office Add-In吗?

ios - 初始化 Swift 成员变量的合适位置

iphone - 将数据添加到 2 个表

office365 - 新连接器适用于 Outlook 但不适用于 Microsoft Teams

python - 使用 Python/Django 集成 MS Power BI

javascript - 找不到模块 : Error: Cannot resolve module 'fs' in

azure - 如何对 WebAPI 进行无人值守的 oauth/openid 身份验证?

html - 密码输入字段在 ios safari 中不起作用

ios - 当我尝试使用 userDefaults 保存到 ui 颜色时,Xcode 给我错误 : Fatal error: Unexpectedly found nil while unwrapping an Optional value

powershell - 截断可变文本字符串