With the introduction of Swift 4.2 I got a deprecation warning stating that I have to use a system library:
warning: system packages are deprecated; use system library targets instead
The library that was being linked was a library that did not really link a library, it just loaded a header file which I needed to do some low level network requests. So the module.modulemap used to contain:
So I have made the changes as you suggested and get the following errors when I use the library:
warning: Ignoring declared target(s) 'Network' in the system package
warning: system packages are deprecated; use system library targets instead
So it doesn't recognize that this is a system library. I tried removing the product section, given that I don't really build a library. It is all about the header nothing else. No luck. The message is identical.
Side note. I ran into this error while trying to code along with the examples at:
Specifically the line swift package init --type system-module Is it possible to update these docs? I would update them myself and open a PR but as somebody just at the tutorials phase of this I'm not sure I'm qualified to write the tutorial yet.