2016-11-22 5 views
0

Objective-C iOSアプリケーションをParse.comから自己ホスト型Parse-Serverに移動しています。Objective-C iOSアプリケーションを自己ホスト型Parse-Serverに移行する問題

私はthis documentを読んでいます。

[Parse initializeWithConfiguration:[ParseClientConfiguration 
             configurationWithBlock:^(id<ParseMutableClientConfiguration> configuration) { 
     configuration.applicationId = @"MY_APP_ID"; 
     configuration.clientKey = @""; 
     configuration.server = @"https://my_app.herokuapp.com/parse"; 
    }]]; 

しかし、問題は、私はこのコードを使用する場合、私はこのエラーメッセージを取得することです:

.....] Reachability Flag Status: WR t------ networkStatusForFlags 
.....] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: ''clientKey' should not be nil.' 

誰もがここで何をすべきか知っていますか?

+0

mongo URLを使用して移行が成功しましたか? –

+0

あなたが使用しているSDKのバージョンを解析しますか? –

+0

はい、mongo URLを使用して移行が成功したことがわかります。 旧バージョンのParse SDKを使用していましたが、ここで問題が発生していました。私は今、新しいバージョンをインストールしようとしています。 – Michel

答えて

0

parse-serverに入ったら、serverとapplicationIDを含める必要があります。クライアントキーはもはや必要なくなり、単純に含めません。

[Parse initializeWithConfiguration:[ParseClientConfiguration 
            configurationWithBlock:^(id<ParseMutableClientConfiguration> configuration) { 
    configuration.applicationId = @"MY_APP_ID"; 
//  configuration.clientKey = @""; 
    configuration.server = @"https://my_app.herokuapp.com/parse"; 
}]]; 
関連する問題