-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build of package using swift-openapi-generator fails with "Multiple commands produce ... Types.swift" #376
Comments
Try add swift-http-types dependency.
|
Hi @timbms, I don't think @luomein's suggestion will address your issue, you shouldn't have to explicitly depend on swift-http-types. A few things to check:
|
Thanks for the quick support.
I also gave @luomein's idea a try. Without success |
If you open the package using And sure, try with the curated library, it helps separate generated and hand-written code nicely anyway, and hopefully it'll address your issue. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment was marked as resolved.
This comment was marked as resolved.
Hi @timbms, were you able to resolve the issue? |
Closing for now, please comment again if this is still reproducing and we can reopen. |
Hello. |
Can you provide your Package.swift? So far every time we saw this it was a misconfiguration. |
@czechboy0 It consists of an iOS app, a watchOS app and a library configured with a local Swift Package that uses openapi generator. I think it is probably a problem with Xcode, Swift Package Manager, not with openapi generator, but I think it is very inconvenient at the moment, regardless of the solution. |
I see, yes please file an issue using feedbackassistant.apple.com. In the meantime, as a workaround, you could switch to ahead-of-time generation which should hopefully unblock you: https://swiftpackageindex.com/apple/swift-openapi-generator/1.2.1/documentation/swift-openapi-generator/manually-invoking-the-generator-cli |
Hi,
I want to migrate to swift-openapi-generator. It worked fine when I experimented with the inclusion as demonstrated in the WWDC demo.
Now I want to shift the generator code to the embedded package that is defined via a
Package.swift
:Build fails with the following message:
Any help would be very much appreciated.
Tim
The text was updated successfully, but these errors were encountered: