Hi, we´ve just recently started using AGSGDBSyncDirectionUpload on one of our feature layers.
Our app crashes with the following trace, and it seems to happen only if there has not been any changes to the layer configured to "upload only".
I´m trying to work around by not setting the flag if there has not been any changes, but I´m guessing then the layer will default to bidirectional sync?
Thanks,
Kristoffer
Fatal Exception: Invalid Parameters
This sync operation specifies an upload should occur, but no deltas have previously been uploaded.
Thread : Fatal Exception: Invalid Parameters
0 CoreFoundation 0x18515cf48 __exceptionPreprocess + 124
1 libobjc.A.dylib 0x199f57f80 objc_exception_throw + 56
2 sblogg2014 0x1003f328c -[AGSGDBSyncTask ags_submitSyncJobWithUploadItem:geodatabase:params:jobStarted:]
3 sblogg2014 0x100424d34 -[AGSGDBSyncUtility kickOffJobWithCompletion:]
4 sblogg2014 0x10042a848 -[AGSResumableTaskJobUtility privateKickOffJob]
5 sblogg2014 0x10042a67c __50-[AGSResumableTaskJobUtility privatePreProcessJob]_block_invoke310
6 sblogg2014 0x100424b8c __49-[AGSGDBSyncUtility preProcessJobWithCompletion:]_block_invoke
7 libdispatch.dylib 0x19a7756e8 _dispatch_call_block_and_release + 24
8 libdispatch.dylib 0x19a7756a8 _dispatch_client_callout + 16
9 libdispatch.dylib 0x19a77adb0 _dispatch_main_queue_callback_4CF + 1844
10 CoreFoundation 0x1851141f8 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12
11 CoreFoundation 0x185112060 __CFRunLoopRun + 1628
12 CoreFoundation 0x185040ca0 CFRunLoopRunSpecific + 384
13 GraphicsServices 0x1900d4088 GSEventRunModal + 180
14 UIKit 0x18a758ffc UIApplicationMain + 204
15 sblogg2014 0x10010e734 main (main.m:19)
16 libdyld.dylib 0x19a7a68b8 start + 4