My SwiftPM package pull in its C dependency via a git submodule. SwiftPM fetches the submodule automatically when building from the command line, and so my file
VERSION.TXT is available in the submodule directory. I parse this file to populate macros via
.define("RELEASE_DATE", to: "\"\(parseFile())\"", nil).
This works well from the command line, but when trying to add the package to Xcode, the submodule is NOT loaded before trying to resolve the package, so the
VERSION.TXT file doesn't exist and, of course, setting the macro fails.
While I can continue to use it as a local repo, that's not very nice for other users. Am I overlooking an existing solution to this? Please assume that I can't change the upstream C repository.