0
我想設置我的iOS應用程序,所以我可以使用解析數據庫。Heroku的在我的應用程序我寫道:[錯誤]:最終錯誤運行命令失敗:錯誤域= NSCocoaErrorDomain代碼= 3840「JSON文本沒有開始數組或對象
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
// Enable storing and querying data from Local Datastore.
// Remove this line if you don't want to use Local Datastore features or want to use cachePolicy.
Parse.enableLocalDatastore()
let parseConfiguration = ParseClientConfiguration(block: { (ParseMutableClientConfiguration) -> Void in
ParseMutableClientConfiguration.applicationId = "insta95222295"
ParseMutableClientConfiguration.clientKey = "[email protected]#$543sd"
ParseMutableClientConfiguration.server = "https://insta9522.herokuapp.com/parse"
})
Parse.initializeWithConfiguration(parseConfiguration)
,當我運行它,我得到以下錯誤:
>Object has been saved.
>2016-10-14 00:50:49.984 ParseStarterProject-Swift[9199:231387] [Error]: Failed to run command eventually with error: Error Domain=NSCocoaErrorDomain Code=3840 "JSON text did not start with array or object and option to allow fragments not set." UserInfo={NSDebugDescription=JSON text did not start with array or object and option to allow fragments not set.}
它已經/解析 – alibabaei12