Post not yet marked as solved
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!!
Xcode cloud failed to build project with OpenAPIGenerator, message as the following:
Command exited with non-zero exit-code: 75
Archiving project *** with scheme ***
Prepare packages
Validate plug-in “OpenAPIGenerator” in package “swift-openapi-generator”
“OpenAPIGenerator” is disabled
Plug-in “OpenAPIGenerator” is implemented here
Running the project locally is just fine, archive is also working as expected. Tried clean building and it's NOT working.
Trying to utilize the new OpenAPI Generator, but after following all of the steps exactly as stated in the video, I get the following errors:
- The package product 'SwiftSyntax' requires minimum platform version 13.0 for the iOS platform, but this target supports 12.0
- The package product 'SwiftSyntaxBuilder' requires minimum platform version 13.0 for the iOS platform, but this target supports 12.0
- The package product 'SwiftFormat' requires minimum platform version 13.0 for the iOS platform, but this target supports 12.0
- The package product 'SwiftFormatConfiguration' requires minimum platform version 13.0 for the iOS platform, but this target supports 12.0
under both _OpenAPIGeneratorCore and swift-openapi-generator
I've seen other things online where people have had similar issues, but the fixes haven't been particularly relevant that I could tell.