例外:应用程序初始化文档选择器缺少iCloud权利。是否设置了com.apple.developer.icloud-container-identifiers?

时间:2018-03-15 05:49:42

标签: c# ios xamarin

我正在使用以下链接中的文件选择器:2.0.8-beta https://github.com/jfversluis/FilePicker-Plugin-for-Xamarin-and-Windows

我已经设置了我的iOS xamarin项目,并在我的应用程序中设置了以下链接中提到的所有数据: https://docs.microsoft.com/en-in/xamarin/ios/data-cloud/intro-to-cloudkit

但现在我的iOS低于错误。有什么机构有什么想法? 例外:

  

Foundation.MonoTouchException:抛出Objective-C异常。名称:NSInternalInconsistencyException原因:应用程序初始化   文档选择器缺少iCloud权利。是   com.apple.developer.icloud-container-identifiers set?

     

本机堆栈跟踪:

     

0 CoreFoundation 0x0000000185ace37c + 148          1 libobjc.A.dylib 0x0000000184d14528 objc_exception_throw + 56          2 CoreFoundation 0x0000000185ace238 + 0          3基金会0x00000001864697f4 + 112          4 UIKit 0x000000018f77ff0c + 300          5 UIKit 0x000000018f77f788 + 228          6 XamarinFilePickerTest.iOS 0x0000000102e038e8 XamarinFilePickerTest.iOS + 38582504          7 XamarinFilePickerTest.iOS 0x0000000102245904 XamarinFilePickerTest.iOS + 26269956          8 XamarinFilePickerTest.iOS 0x000000010321dfd0 XamarinFilePickerTest.iOS + 42885072          9 XamarinFilePickerTest.iOS 0x000000010321f4e4 XamarinFilePickerTest.iOS + 42890468          10 XamarinFilePickerTest.iOS 0x000000010322f334 XamarinFilePickerTest.iOS + 42955572

1 个答案:

答案 0 :(得分:1)

  

应用程序初始化文档选择器缺少iCloud权利。是com.apple.developer.icloud-container-identifiers set?

请参阅Enabling CloudKit in a Xamarin Application

iCloud中启用Entitlements.plist并确保该应用程序存在Ubiquity容器。

enter image description here