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

Multiple modules / dynamic libs in the same package #44

Open
fpirsch opened this issue Oct 27, 2024 · 0 comments
Open

Multiple modules / dynamic libs in the same package #44

fpirsch opened this issue Oct 27, 2024 · 0 comments

Comments

@fpirsch
Copy link

fpirsch commented Oct 27, 2024

I need to build several distinct NodeModules in the same project.
I have this directory structure

root
  ├ Sources
  │  ├ Module1
  │  │   └ Module1.swift
  │  └ Module2
  │      └ Module2.swift
  ├ package.json
  └ Package.swift

And in Package.swift I declared my 2 .dynamic products and the 2 associated targets.
When I run node-swift build I get this error :
Error: Found more than 1 dynamic library in the Swift Package. Consider specifying which product should be built via the swift.product field in package.json.

I ended up patching cli.js to accept another command line argument specifying which product to build.

Is there some other way to achieve this ?

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