我正在使用来自以下链接的文件选择器:2.0.8-beta https://github.com/jfversluis/FilePicker-Plugin-for-Xamarin-and-Windows
我已经设置了我的 iOS xamarin 项目并在我的应用程序中设置了以下链接中提到的所有数据: https://learn.microsoft.com/en-in/xamarin/ios/data-cloud/intro-to-cloudkit
但现在我遇到了 iOS 错误。任何人有任何想法? 异常:
Foundation.MonoTouchException: Objective-C exception thrown. Name: NSInternalInconsistencyException Reason: Application initializing document picker is missing the iCloud entitlement. Is com.apple.developer.icloud-container-identifiers set?
Native stack trace:
0 CoreFoundation 0x0000000185ace37c + 148 1 libobjc.A.dylib 0x0000000184d14528 objc_exception_throw + 56 2 CoreFoundation 0x0000000185ace238 + 0 3 Foundation 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
最佳答案
Application initializing document picker is missing the iCloud entitlement. Is com.apple.developer.icloud-container-identifiers set?
引用Enabling CloudKit in a Xamarin Application
在 Entitlements.plist
中启用 iCloud
并确保应用程序存在 Ubiquity Container。
关于c# - 异常 : Application initializing document picker is missing the iCloud entitlement. 是否设置了 com.apple.developer.icloud-container-identifiers?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49292370/