尝试使用UIDocumentMenuViewController时iOS8崩溃 [英] iOS8 crash when try to use UIDocumentMenuViewController

查看:468
本文介绍了尝试使用UIDocumentMenuViewController时iOS8崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Xamarin.Forms创建iOS应用,并使用UIDocumentMenuViewController访问iCloud文件.

I use Xamarin.Forms to create iOS app and I use UIDocumentMenuViewController to Access iCloud file.

当我在iOS9 +上运行程序时,程序正常运行,但是当我尝试使用iOS8仿真器的程序时,程序崩溃了

When I run program on iOS9+ program is run normally, But when I try my program with iOS8 emulator program is crash on

new UIDocumentMenuViewController(allowedUTIs, UIDocumentPickerMode.Import);

消息在说

'Application initializing document picker is missing the iCloud entitlement. Is com.apple.developer.icloud-container-identifiers set?'

我的应用程序有什么问题,我该如何解决?

What wrong with my app and how can I fix this?

谢谢.

推荐答案

您需要确保已按照甚至在

在您的应用程序可以使用文档选择器之前,您必须打开iCloud文档功能

Before your app can use the document picker, you must turn on the iCloud Documents capabilities

如果还没有这样做,只需在项目的根目录中创建一个新的Entitlements.plist文件.然后只需启用iCloud选项.

If you haven't done so already, simply create a new Entitlements.plist file in the root of your project. Then simply enable the iCloud option.

这篇关于尝试使用UIDocumentMenuViewController时iOS8崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆