Closed
Description
Hi,
we are currently trying to migrate to this OpenAPI generator plugin. However, we noticed that builds of our Swift Package are no longer possible if the plugin is added to the target and an iOS Simulator is selected as target environment.
The following snippet is used to declare the target in the Package.swift
file:
.target(
name: "MyOAPIExample",
dependencies: [
.product(name: "OpenAPIRuntime", package: "swift-openapi-runtime"),
"MyNetworkingLibrary",
],
plugins: [
.plugin(
name: "OpenAPIGenerator",
package: "swift-openapi-generator"
),
]
),
As soon as the plugin is added to the target, the build fails with the following issue:
error: The package product 'OpenAPIGenerator' requires minimum platform version 99.0 for the iOS platform, but this target supports 15.0 (in target 'MyOAPIExample' from project 'MyNetworking')
Builds who target macOS work fine. Is there any workaround that enables iOS builds?
Thanks & best regards,
Yannik