Accessing files in app bundle from a third party framework in macOS

Hi there, I have added a certificate to my project, and also a third party framework integrated to my project, I want to give the path of that certificate to the framework.

Tried Bundle.main.path(forResource: "certificate", ofType: "pem"), this works with iOS but my framework can't access it in case of macOS.

Please let me know if there is any other way to this.

In case of iOS, I get the path as: /private/var/containers/Bundle/Application/9852778D-2538-4F86-A705-F7916481DB2F/Sample.app/ssl.pem and for macOS, the path is: /Users/Name/Library/Developer/Xcode/DerivedData/TunnelKit-gbhxytmxhmfhnqflnzpfubtwfnvt/Build/Products/Debug/Sample.app/Contents/Resources/ssl.pem

Can framework inside my app access Users/Name?

Accessing files in app bundle from a third party framework in macOS
 
 
Q