Levan Karanadze desires to attract extra consideration to this query.
I am utilizing SPM in my undertaking and am attempting to combine Apple/swift-openapi-generator. My undertaking is split into a number of modules, for which I am utilizing SPM. To handle dependencies, I’ve a Package deal.swift file.
// swift-tools-version:5.8
import Basis
import PackageDescription
let openAPIRuntime = Goal.Dependency.product(identify: “OpenAPIRuntime”, bundle: “swift-openapi-runtime”)
let openAPIURLSession = Goal.Dependency.product(identify: “OpenAPIURLSession”, bundle: “swift-openapi-urlsession”)
let openAPIGenerator = Goal.PluginUsage.plugin(identify: “OpenAPIGenerator”, bundle: “swift-openapi-generator”)
let targets: [Target] = [
.target(
name: “OpenAPIClient”,
dependencies: [openAPIRuntime, openAPIURLSession],
plugins: [openAPIGenerator]
),
//…
]
let bundle = Package deal(
identify: “Modules”,
platforms: [.iOS(“16.0”), .macOS(.v11)],
merchandise: targets.filter { !$0.isTest }.map { .library(identify: $0.identify, targets: [$0.name]) },
dependencies: [
.package(url: “https://github.com/apple/swift-openapi-generator”, from: “0.1.0”),
.package(url: “https://github.com/apple/swift-openapi-runtime”, from: “1.0.0”),
.package(url: “https://github.com/apple/swift-openapi-urlsession”, from: “1.0.0”),
//…
],
targets: targets
)
As demonstrated, I’ve added openAPIRuntime and openAPIURLSession merchandise and the openAPIGenerator plugin to this file. Because of this, I can efficiently construct the undertaking.
Now, I need to add the openAPIGenerator plugin in MyTarget -> Construct Phases -> Run Construct Device Plug-ins, however after I press the + button, I am unable to discover openAPIGenerator.
How can I clear up this situation?