I add a scheme, but the generated project doesn't have the scheme.
public static func app(name: String, platform: Platform, additionalTargets: [String]) -> Project {
var targets = makeAppTargets(name: name,
platform: platform,
dependencies: additionalTargets.map { TargetDependency.target(name: $0) })
targets += additionalTargets.flatMap({ makeFrameworkTargets(name: $0, platform: platform) })
return Project(name: name,
organizationName: "tuist.io",
targets: targets,
schemes: [
Scheme(name: "DummyScheme") // <--- here
])
}
import ProjectDescription
import ProjectDescriptionHelpers
let dependencies = Dependencies(
swiftPackageManager: .init([
.remote(url: "https://github.com/pointfreeco/swift-tagged.git", requirement: .upToNextMajor(from: "0.6.0")),
.remote(url: "https://github.com/Alamofire/Alamofire", requirement: .upToNextMajor(from: "5.5.0"))
]),
platforms: [.iOS]
)
/// Helper function to create a framework target and an associated unit test target
private static func makeFrameworkTargets(name: String, platform: Platform) -> [Target] {
let sources = Target(name: name,
platform: platform,
product: .framework,
bundleId: "io.tuist.\(name)",
infoPlist: .default,
sources: ["Targets/\(name)/Sources/**"],
resources: [],
dependencies: [.external(name: "Tagged")]) // <- here
dependencies: [.external(name: "Tagged")])
to
dependencies: [.external(name: "Alamofire")])
see the image above
13.0.1
3.20.0
14.3
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too