2017-10-11 122 views
0

我在Xamarin中创建了iPhone应用程序。我在Entitlements.plist中启用了KeyChain共享功能,以便我可以在类似的应用程序中共享一些数据。该应用程序在模拟器上正常工作并进行调试。但是,当我使用开发或分发供应配置文件签署应用程序时,该应用程序不会部署在设备上。如果我禁用KeyChain共享应用程序工作正常。可执行文件仅在设备上使用无效授权错误进行签名

我得到一个错误,像这样: -

Info (216)/streaming_zip_conduit: _dispatch_source_read_socket_block_invoke:312: Failed to install application at file:///var/mobile/Media/PublicStaging/appname.iOS.app/ : Error Domain=MIInstallerErrorDomain Code=13 "Failed to verify code signature of /private/var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.VEgA0a/extracted/Poll365.iOS.app : 0xe8008016 (The executable was signed with invalid entitlements.)" UserInfo={LibMISErrorNumber=-402620394, LegacyErrorString=ApplicationVerificationFailed, SourceFileLine=147, FunctionName=+[MICodeSigningVerifier validateSignatureAndCopyInfoForURL:withOptions:error:], NSLocalizedDescription=Failed to verify code signature of /private/var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.VEgA0a/extracted/appname.iOS.app : 0xe8008016 (The executable was signed with invalid entitlements.)} 

我以前实施的其他应用程序一样。我认为这可能是iOS 10的一个问题,我不确定。我怎样才能解决这个问题?

任何帮助表示赞赏。

+0

我建议使用相同的配置文件,并在'Xcode'中启用'keychain'来查看它是否有效。 –

回答

0

参考sharing-keychain-in-ios

向下滚动阅读什么是我的应用程序ID前缀?

我发现当你享待遇启用钥匙串,它自动在Xamarin.ios生成XcodeApp ID Prefix,但是它缺乏App ID Prefix,你必须完成钥匙扣访问组名称。

它看起来像AB123CDE45.myKeychainGroup,应用程序ID前缀+应用程序ID。

相关问题