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

$.import() is not importing nested frameworks #114

Open
hhas opened this issue Oct 20, 2018 · 0 comments
Open

$.import() is not importing nested frameworks #114

hhas opened this issue Oct 20, 2018 · 0 comments

Comments

@hhas
Copy link

hhas commented Oct 20, 2018

The parseBridgeFile() method in import.js relies on depends_on elements in .bridgesupport files to locate nested framework bundles within 'umbrella' framework bundles such as CoreServices. However, BridgeSupport (5) manpage states that 'depends_on' element is deprecated and no longer provided. Inspection of CoreServices.framework on 10.13/10.14 confirms this.

Passing a nested framework's name directly to import does not work as only top-level frameworks are on PATH. One workaround is to pass the full path to each nested framework to $.import() in turn, e.g.:

$.import(path.join($.resolve('CoreServices'), 'Frameworks/AE.framework'));
$.import(path.join($.resolve('Carbon'), 'Frameworks/OpenScripting.framework'));
// etc.

A permanent solution would be for parseBridgeFile() to recursively search each framework bundle for nested frameworks itself.

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

1 participant