krzyzanowskim/OpenSSL

Question: macOS Configuration

phedlund opened this issue · 2 comments

When archiving for macOS the OpenSSL framework is placed in /Contents/Frameworks/OpenSSL.framework but when attempting to launch the app the system is looking in /Contents/MacOS/Frameworks/OpenSSL.framework. Since it can't be found there the app crashes. How can I configure this correctly?
(If it matters, my app is using the SwiftUI app life cycle).

Updating Runpath Search Path to

LD_RUNPATH_SEARCH_PATHS = (
    "$(inherited)",
    "@executable_path/Frameworks",
    "@executable_path/../Frameworks",
);

resolves the issue. Can that be added to the package somehow?

@executable_path/../Frameworks is the default for macOS, and it's already setup like that.

Screenshot 2023-09-06 at 20 03 05

It may be setting on your project? or can you attach an Xcode project where its failing? I can't reproduce