docusign / native-ios-sdk

A set of official UI components along with programmable client libraries that enable developers to integrate their products with DocuSign’s signature service API on iOS
https://docusign.github.io/native-ios-sdk/documentation/docusignsdk/
Other
27 stars 27 forks source link

DSMDocument build keeps on failing with below error after Upgrading library 2.4.1 -> 2.5.2 #89

Closed pushp1010 closed 2 years ago

pushp1010 commented 3 years ago

@ashokds DSMDocument build keeps on failing with below error:

Terminating app due to uncaught exception 'DSMDocumentBuilderException', reason: 'documentId, name, and filePath are required.' First throw call stack: ( 0 CoreFoundation 0x00007fff20421af6 exceptionPreprocess + 242 1 libobjc.A.dylib 0x00007fff20177e78 objc_exception_throw + 48 2 CoreFoundation 0x00007fff20421797 -[NSException init] + 0 3 DocuSignSDK 0x0000000107bf484f ArrayByAddingFlexibleSpace + 42497 4 DocuSignSDK 0x0000000107bdbfde dsmClamp + 287418 5 iPartners 0x00000001077254b0 $s9iPartners17DataListingRouterC20setupAndSendTemplate33F1802B65D3EECA7DEE275FFD266D3639LLyyF + 1248 6 iPartners 0x0000000107724fbb $s9iPartners17DataListingRouterC11showOptionsyyFySo13UIAlertActionCcfU3 + 27 7 iPartners 0x0000000107719089 $sSo13UIAlertActionCIegg_ABIeyBy_TR + 73 8 UIKitCore 0x00007fff23b06104 -[UIAlertController _invokeHandlersForAction:] + 105 9 UIKitCore 0x00007fff23b06a0a __103-[UIAlertController _dismissAnimated:triggeringAction:triggeredByPopoverDimmingView:dismissCompletion:]_block_invoke.452 + 16 10 UIKitCore 0x00007fff23e3a17f -[UIPresentationController transitionDidFinish:] + 947 11 UIKitCore 0x00007fff23e3ec28 56-[UIPresentationController runTransitionForCurrentState]_block_invoke.502 + 199 12 UIKitCore 0x00007fff23f8e1d0 -[_UIViewControllerTransitionContext completeTransition:] + 90 13 UIKitCore 0x00007fff24bec248 -[UIViewAnimationBlockDelegate _didEndBlockAnimation:finished:context:] + 779 14 UIKitCore 0x00007fff24bbcb0e -[UIViewAnimationState sendDelegateAnimationDidStop:finished:] + 231 15 UIKitCore 0x00007fff24bbd0ad -[UIViewAnimationState animationDidStop:finished:] + 259 16 UIKitCore 0x00007fff24bbd231 -[UIViewAnimationState animationDidStop:finished:] + 647 17 QuartzCore 0x00007fff27b2f09c _ZN2CA5Layer23run_animation_callbacksEPv + 308 18 libdispatch.dylib 0x000000010a2899c8 _dispatch_client_callout + 8 19 libdispatch.dylib 0x000000010a297e75 _dispatch_main_queue_callback_4CF + 1152 20 CoreFoundation 0x00007fff2038fdbb CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 9 21 CoreFoundation 0x00007fff2038a63e __CFRunLoopRun + 2685 22 CoreFoundation 0x00007fff203896d6 CFRunLoopRunSpecific + 567 23 GraphicsServices 0x00007fff2c257db3 GSEventRunModal + 139 24 UIKitCore 0x00007fff24696cf7 -[UIApplication _run] + 912 25 UIKitCore 0x00007fff2469bba8 UIApplicationMain + 101 26 iPartners 0x00000001077181cb main + 235 27 libdyld.dylib 0x00007fff2025a3e9 start + 1 28 ??? 0x0000000000000001 0x0 + 1 ) libc++abi.dylib: terminating with uncaught exception of type NSException

bharadwaj465 commented 3 years ago

Thanks for reporting. We have addressed this issue and the fix is going to appear in the upcoming version 2.5.3.

ashokds commented 3 years ago

@pushp1010 ,

release/2.5.3-beta has a fix for the DSMDocumentBuilderException you are seeing.

Could you please try this: pod 'DocuSign', :git => 'https://github.com/docusign/native-ios-sdk.git', :branch => "release/2.5.3-beta"

This guide's section 3 has more information on integrating specific branches via pods.

Thanks.

pushp1010 commented 3 years ago

@ashokds Thanks for the update I tried using the way https://github.com/docusign/native-ios-sdk/blob/master/support-files/Integration-Troubleshooting.md but it did not work

Screenshot 2021-09-06 at 5 19 38 PM

.

ashokds commented 3 years ago

@pushp1010 ,

Please add details on Xcode and cocapods version in use. Recommended Xcode version is 12.5.x and cocoapods is 1.10.1.

Also, for Section Fix: Ensure Client is fetching DocuSignSDK Binary. If your binaries under Pods/DocuSignSDK.xcframework/.../DocuSignSDK.framework are being fetched correctly and the sizes match with published framework (for example: DocuSignSDK binary for ios-arm64_armv7), you wouldn't encounter this error.

Specifically, did you try clearing CocoaPods DocuSign pods in cache with pod cache clean 'DocuSign' --all and other recommended steps to remove all local pods before pulling pod from 2.5.3-beta with git-lfs enabled.

Thanks

ashokds commented 2 years ago

Closing this issue as the same setup on another machine worked for @pushp1010 .