_OpenAPIGeneratorCore linking error in xcodebuild -test

Following the package example in https://github.com/apple/swift-openapi-generator/tree/main/Examples/GreetingService, when running xcodebuild test of the consumer project, we are getting the following error:

_OpenAPIGeneratorCore is only to be used by swift-openapi-generator itself—your target should not link this library or the command line tool directly.
Testing cancelled because the build failed.

Since the generator package and it's plugin are being imported in the service package we don't exactly what we are doing wrong because we are not linking any library directly to the target, would appreciate any help, thanks!!

Replies

Thanks for the reply, we did see that thread, but we are not linking the library to the test target, so we don't understand exactly what we are doing wrong.