Hello,
I have an Xcode project (not a workspace), that depends upon a swift package found on GitHub. You can find the PR here that demonstrates the problem. https://github.com/bolsinga/MissingArt/pull/2
My project has a Swift Package dependency. It's a macOS target. If I Cmd-B in Xcode it will build and run just fine (finding the package and building it too). If I xcodebuild -verbose
from the command line in CI, it will fail.
The problem is that when the application files compile and import the module found in the Swift Package, the module is not found.
If this were ObjC, I'd know that the search path was not found. I do not see anything about my module on the link line. I have followed the instructions about adding a Swift Package Mgr dependency, and it works locally.
I'm sure that I'm missing one small thing; I'm not sure if xcodebuild
with no options (thus getting the default behavior) is the proper thing to do.
Any ideas?
Thank you, -- Greg