无法启用解析本地数据存储 [英] Can't enable Parse Local Datastore

查看:92
本文介绍了无法启用解析本地数据存储的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试启用解析本地数据存储".在解析文档"中,他们说要在代码enableLocalDatastore 之前 setApplicationId:clientKey:之前放置代码,但这会引发异常:

I'm trying enable the Parse Local Datastore. In the Parse Docs, they said to put the code enableLocalDatastore before setApplicationId:clientKey:, but this throws an exception:

由于未捕获的异常而终止应用程序 "NSInternalInconsistencyException",原因:您必须致电 setApplicationId:clientKey:在Parse上配置Parse.'

Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'You have to call setApplicationId:clientKey: on Parse to configure Parse.'

推荐答案

v1.6.0

在设置applicationId和clientKey之后放置enableLocalDatastore的代码.看来这只是他们文档中的一个错误.

Place the code for enableLocalDatastore after setting applicationId and clientKey. It looks like it was simply a mistake in their documentation.

v1.6.1 +

在设置applicationId和clientKey之前,放置enableLocalDatastore的代码.

Place the code for enableLocalDatastore before setting applicationId and clientKey.

这篇关于无法启用解析本地数据存储的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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