iAnnotate SDK Error : kAPPDFWriteOptionsFlatten
I have implemented the iAnnotate SDK in iOS application and it is working fine in all iOS Versions expect iOS 10 beta version, it throwing an error in "writePDFWithAnnotations" method and here is the stack trace logs:
"* thread #1: tid = 0x42128, 0x000000018cc70df8 libsystem_kernel.dylib__psynch_cvwait + 8, queue = 'com.apple.main-thread' frame #0: 0x000000018cc70df8 libsystem_kernel.dylib__psynch_cvwait + 8
frame #1: 0x000000018cd33b44 libsystem_pthread.dylib_pthread_cond_wait + 640 frame #2: 0x000000018dab9584 Foundation-[NSCondition wait] + 240
frame #3: 0x00000001004bced4 BW - Internal+[AUUncaughtExceptionHandler performOperationInBackgroundAndWaitOrCatchSignal:] + 244 frame #4: 0x000000010051a2d8 BW - Internal+[AUPDFPageWriter flattenPageRange:ofPDF:withTitle:toPath:annotatedOnly:includeAnnotations:] + 236
frame #5: 0x000000010051a4f8 BW - Internal+[AUPDFPageWriter flattenPDF:withTitle:toPath:annotatedOnly:] + 76 frame #6: 0x000000010052b1a8 BW - Internal-[AUPDFProcessor doWritePDFWithAnnotations:toPath:options:] + 848
frame #7: 0x000000010052c4a4 BW - Internal-[AUPDFProcessor writePDFWithAnnotations:toPath:options:] + 688 frame #8: 0x0000000100467574 BW - Internal-[APPDFProcessor writePDFWithAnnotations:toPath:options:] + 320
- frame #9: 0x00000001002432b8 BW - Internal
-[self doFlattenWriting](self=0x0000000124254000, _cmd="doFlattenWriting") + 280 at ViewFile.m:1970 frame #14: 0x0000000192e963f0 UIKit-[UIApplication sendAction:to:from:forEvent:] + 96 frame #15: 0x0000000192e96370 UIKit-[UIControl sendAction:to:forEvent:] + 80 frame #16: 0x0000000192e80c68 UIKit-[UIControl _sendActionsForEvents:withEvent:] + 396 frame #17: 0x0000000192e95c5c UIKit-[UIControl touchesEnded:withEvent:] + 584 frame #18: 0x0000000192e956fc UIKit-[UIWindow _sendTouchesForEvent:] + 2316 frame #19: 0x0000000192e90a40 UIKit-[UIWindow sendEvent:] + 3036 frame #20: 0x0000000192e618c8 UIKit-[UIApplication sendEvent:] + 248 frame #21: 0x000000019361cfd4 UIKit__dispatchPreprocessedEventFromEventQueue + 2908 frame #22: 0x000000019361741c UIKit__handleEventQueue + 3952 frame #23: 0x000000018d08e3f0 CoreFoundation__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24 frame #24: 0x000000018d08dd38 CoreFoundation__CFRunLoopDoSources0 + 524 frame #25: 0x000000018d08b938 CoreFoundation__CFRunLoopRun + 804 frame #26: 0x000000018cfbe2e4 CoreFoundationCFRunLoopRunSpecific + 292 frame #27: 0x000000018e99715c GraphicsServicesGSEventRunModal + 180 frame #28: 0x0000000192ecc6fc UIKit-[UIApplication _run] + 692 frame #29: 0x0000000192ec7438 UIKitUIApplicationMain + 208 frame #30: 0x00000001000d7ac0 BW - Internalmain(argc=1, argv=0x000000016fd2faa0) + 116 at main.m:16 frame #31: 0x000000018cb60600 libdyld.dylib`start + 4 "
Please help me to resolve this?