【问题标题】:application initializing document picker is missing the icloud entitlement应用程序初始化文档选择器缺少 icloud 权利
【发布时间】:2018-01-03 10:07:24
【问题描述】:

我正在使用“react-native-document-picker”库并使用 iphone 6 模拟器。 每当我单击按钮时,我都会遇到异常:“应用程序初始化文档选择器缺少 iCloud 权利”。我该如何解决这个问题? 请建议我任何解决方案。提前致谢。

import { DocumentPicker, DocumentPickerUtil } from 'react-native-document-picker';
export class EditInformation extends Component {

 docPicker() {
  DocumentPicker.show({
  filetype: [DocumentPickerUtil.images()]
   },(error, res) => {
 });
}
render() {
 return (
   <View>
     <Button onPress={() => this.docPicker()}>
        <Text> Upload image </Text>
      </Button>
    </View>
  )}
}

【问题讨论】:

    标签: iphone react-native icloud


    【解决方案1】:

    首先,你需要有苹果付费开发者账号,并使用Xcode的功能设置设置你自己的iCloud账号。

    【讨论】:

    • 我有 iCloud 帐户,但我仍然面临这个问题
    【解决方案2】:

    我认为你需要添加这个

    import MobileCoreServices
    

    在 .m 文件的顶部

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-09-15
      • 2015-04-17
      • 2019-09-02
      • 2016-08-10
      • 1970-01-01
      • 2015-11-23
      相关资源
      最近更新 更多