apple / swift-openapi-generator

Generate Swift client and server code from an OpenAPI document.
https://swiftpackageindex.com/apple/swift-openapi-generator/documentation
Apache License 2.0
1.21k stars 87 forks source link

Issue Enabling OpenAPIGenerator Plugin for Xcode Cloud Build #531

Closed TweedBeetle closed 2 months ago

TweedBeetle commented 2 months ago

Question

I am encountering an issue when trying to use the OpenAPIGenerator plugin during an Xcode Cloud build process. Despite following the setup instructions, I'm facing a problem with enabling the plugin for my project, which is preventing my builds from succeeding.

Environment:

Issue Description: During the Xcode Cloud build process, I receive an error stating that the "OpenAPIGenerator must be enabled before it can be used" and that "OpenAPIGenerator is disabled." This issue occurs at the stage where my project attempts to archive using the xcodebuild archive command.

Error Message:

image

Could you please provide guidance on how to properly enable the OpenAPIGenerator plugin for use in Xcode Cloud builds? Any advice or steps that I might be missing would be greatly appreciated.

Thank you for your support and for developing such a useful tool.

Best

simonjbeaumont commented 2 months ago

Hey @TweedBeetle. That's a known thing with Xcode Cloud. The workaround is here: https://developer.apple.com/forums/thread/732893.

If that doesn't work, please reopen and we'll take a closer look.