Sybase Unwired Platform 2.1 ESD 3 を使用して iOS アプリを開発しています。同期パラメーターを保存する前に、次のエラーが発生します。
Terminating app due to uncaught exception 'SUPPersistenceException', reason: 'exception is in createCore: Illegal key generator status: the key generator must be populated first.'
これはソースコードです:
SUPConnectionProfile *sp = [SyncMBOFlowInboxSyncMBOFlowInboxDB getSynchronizationProfile];
[sp setAsyncReplay:NO];
[sp setUser:user];
[sp setPassword:pass];
[sp setServerName:server];
NSUserDefaults *usr = [NSUserDefaults standardUserDefaults];
SyncMBOFlowInboxFlowInboxSynchronizationParameters *pp = [SyncMBOFlowInboxFlowInbox getSynchronizationParameters];
[pp setS_USER_ID:[usr stringForKey:@"netUser"]];
[pp save]; <--The error appear after run this
[SyncMBOFlowInboxSyncMBOFlowInboxDB synchronize];
ありがとう!!