ResearchKit error: 'Could not add Keychain item' for ORKPasscodeStep after converted to Swift 3

ResearchKit error: 'Could not add Keychain item' for ORKPasscodeStep after converted to Swift 3

Apple ResearchKit 项目:更新为 XCode 8 并转换为 Swift 3 后,获取 ORKPasscodeStep 的错误消息 'Could not add Keychain item.'。它是一个框架错误吗?提前致谢!

尝试为您的应用启用 Keychain Sharing 功能。有关详细信息,请参阅 here