Levan Karanadze needs to attract extra consideration to this query.
I am utilizing SPM in my venture and am attempting to combine Apple/swift-openapi-generator. My venture 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(title: “OpenAPIRuntime”, package deal: “swift-openapi-runtime”)
let openAPIURLSession = Goal.Dependency.product(title: “OpenAPIURLSession”, package deal: “swift-openapi-urlsession”)
let openAPIGenerator = Goal.PluginUsage.plugin(title: “OpenAPIGenerator”, package deal: “swift-openapi-generator”)
let targets: [Target] = [
.target(
name: “OpenAPIClient”,
dependencies: [openAPIRuntime, openAPIURLSession],
plugins: [openAPIGenerator]
),
//…
]
let package deal = Package deal(
title: “Modules”,
platforms: [.iOS(“16.0”), .macOS(.v11)],
merchandise: targets.filter { !$0.isTest }.map { .library(title: $0.title, 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. In consequence, I can efficiently construct the venture.
Now, I wish to add the openAPIGenerator plugin in MyTarget -> Construct Phases -> Run Construct Instrument Plug-ins, however after I press the + button, I am unable to discover openAPIGenerator.
How can I resolve this subject?