Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting -[NSBundle initWithURL:]: nil URL argument when using "presentSendTemplateControllerWithTemplate" #2

Closed
freemadc2 opened this issue Oct 9, 2017 · 5 comments

Comments

@freemadc2
Copy link

freemadc2 commented Oct 9, 2017

Hi,

I am getting an crash
instantly when I use the method "presentSendTemplateControllerWithTemplate". The error relates to "-[NSBundle initWithURL:]: nil URL argument". I am not sure why. I am passing a correct templateID. My code is below. If you could lease help me with this. Thanks.

    DSMManager.login(withUserId: DocuSignHelper.userName,
                     password: DocuSignHelper.password,
                     integratorKey: DocuSignHelper.integratorKey,
                     host: URL.init(string: DocuSignHelper.host)!,
                     completionBlock:  { (error) in
        DSMTemplatesManager().presentSendTemplateControllerWithTemplate(withId: templateID, signingMode: .online, presenting: view, animated: true, completion: { (uvc, error) in
            let stringString = ""
        })
    })

Exception:
screen shot 2017-10-08 at 8 15 51 pm

@ashokds
Copy link
Collaborator

ashokds commented Oct 9, 2017

Hi @freemadc2,

Please confirm if DocuSignSDK.bundle is added to the target correctly as per
Step 4. Navigate to Target > Build Phases and under Copy Bundle Resource -> DocuSignSDK.bundle. on the integration guide https://docs.docusign.com/ios_sdk/developer.html.

If the problem persist, please add details of your setup: Swift & Xcode version or a sample project that reproduces the issue you are seeing.

Thanks for reporting this with sample code & call stack.

@freemadc2
Copy link
Author

Ah @ashokds,

This was the issue. Thank you very much.

ashokds added a commit that referenced this issue Apr 10, 2020
Release v2.2.5: WKWebView Improvements #2
ashokds added a commit that referenced this issue May 21, 2021
ashokds added a commit that referenced this issue Jun 14, 2021
* Podspec: New section in Integration Troubleshooting

- Update to address `podspec` section in the troubleshooting guide.

* Update Integration-Troubleshooting.md

* Integration Troubleshooting: language pass

* DocuSign SDK - XCFramework

* XCFramework - Update #2

* Version update: v2.5.1

* Experimental: Fix for Bundle missing crash

* Updated xcframework - Pdf lib fixes

* Updated XCFramework - License

* XCFramework update on the podspec

* Added public headers path

* XCFramework - Headers inclusion test

* Podspec updated - Min iOS, Header search

* XCFramework updated (Header using angle brackets)

* XCFramework updated (Can not build 'DocuSign' Module)

* SDK Podspec internal - Removed header search path

* Podspce (public) - removed header search

* gitattribute -- lfs

* XCFramework - Bitcode

* Different version for public vs private podspecs

* Revert "Different version for public vs private podspecs"

This reverts commit a5a957e.

* XCFramework: Online Signing Cancelled Notification

- When launching online signing with an envelope results in error, it'll notify correctly for all cases with cancelled notification.

* Change Log: v2.5.1 Softlaunch

* XCFramework - IPA archive update

* Updated XCFramework - Tools Plist IPA fix

* XCFramework - Missing file url load

* XCFramework - bitcode disabled

* Update CHANGELOG.md
@HarRes123
Copy link

HarRes123 commented May 17, 2023

@ashokds I'm getting this issue as well, and the solution you provided did not work. When I callcacheTemplate, everything is fine. The issue only occurs when I call presentSendTemplateControllerWithTemplate

@mmohareb
Copy link
Collaborator

Hello @HarRes123

Can you please open a new issue with
1-Sample code of steps you are following
2- Error are you getting
3- SDK version are you using

So we can try to repro the same on our side and help you with your request.

@HarRes123
Copy link

@mmohareb #148

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants