Xcode project with SPM dependencies

I tried to follow your steps on my own machine.

  1. Directly copying and pasting your “Dependencies” manifest did not work. I had to add // swift-tools-version:4.2 to the very top. Did you just leave that out when you copied and pasted?

Other than that, the package and the generated “Dependencies” Xcode project both work properly.

The combined workspace runs into its trouble in the application target (meaning all the targets it inherits from the “Dependencies” project still work fine on their own). Since the application does not import CTulipIndicators, and SwiftTulipIndicators has not @_exported it, I think this all comes down to the general inconsistencies around import. You can read reams on the subject in this thread:

Maybe @Aciid knows if there is anything the package manager could do to mitigate it? Maybe there is someplace Xcode would look by default where the Xcode target generated for a C‐dependent package target might put the module map?