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

Fix appex's Runpath Search Paths under macOS target #952

Merged
merged 2 commits into from
Sep 21, 2020

Conversation

rinsuki
Copy link
Contributor

@rinsuki rinsuki commented Sep 18, 2020

Unlike other operating systems, macOS app is not a flat bundle, so appex is in a deeper hierarchy than other OSes.

  • macOS: Host.app/Contents/PlugIns/Widget.appex/Contents/MacOS/Widget (search path: ../../../../Frameworks)
  • Other OSes (e.g. iOS): Host.app/PlugIns/Widget.appex/Widget (search path: ../../Frameworks)

so, we must be specify LD_RUNPATH_SEARCH_PATHS for macOS target, or dyld can't find Framework (and fail to launch).

@yonaskolb
Copy link
Owner

Thanks @rinsuki. Could you add a changelog entry as well

@rinsuki
Copy link
Contributor Author

rinsuki commented Sep 19, 2020

@yonaskolb Added!

@yonaskolb yonaskolb merged commit 775e14c into yonaskolb:master Sep 21, 2020
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

Successfully merging this pull request may close these issues.

None yet

2 participants