Skip to content

How do I run on IOS for SiteRouter -> this target supports 9.0 #14

@addame2

Description

@addame2

I have create new SPM for my models so I can add server + iOS now when I add it iOS project I am getting this issue

// swift-tools-version: 5.6
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
    name: "WordNotificationSiteRouter",
    platforms: [.macOS(.v12)], -> I also try add `.iOS(.v14)`
    products: [
        // Products define the executables and libraries a package produces,
        // and make them visible to other packages.
        .library(name: "WordNotificationSiteRouter", targets: ["WordNotificationSiteRouter"]),
    ],
    dependencies: [
        .package(url: "https://github.com/pointfreeco/vapor-routing", from: "0.1.1"),
        .package(url: "https://github.com/pointfreeco/swift-parsing", from: "0.9.2"),
        .package(url: "https://github.com/vapor/fluent-mongo-driver.git", from: "1.1.2"),
    ],
    targets: [
        .target(
            name: "WordNotificationSiteRouter",
            dependencies: [
                .product(name: "VaporRouting", package: "vapor-routing"),
                .product(name: "_URLRouting", package: "swift-parsing"),
                .product(name: "FluentMongoDriver", package: "fluent-mongo-driver"),
            ]),
        .testTarget(
            name: "WordNotificationSiteRouterTests",
            dependencies: ["WordNotificationSiteRouter"]),
    ]
)

Showing Recent Messages
The package product 'FluentKit' requires minimum platform version 13.0 for the iOS platform, but this target supports 9.0
The package product 'MongoKitten' requires minimum platform version 12.0 for the iOS platform, but this target supports 9.0
The package product 'Vapor' requires minimum platform version 13.0 for the iOS platform, but this target supports 9.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions