我正在使用 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];
谢谢!!