我目前正在开发一个连接到 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/