Closed makleso6 closed 2 years ago
I am using Vapor on iOS and needs to add iOS platform in Package.swift
let package = Package( name: "websocket-kit", platforms: [ .macOS(.v10_15), .iOS(.v11) ], products: [ .library(name: "WebSocketKit", targets: ["WebSocketKit"]), ], dependencies: [ .package(url: "https://github.com/apple/swift-nio.git", from: "2.33.0"), .package(url: "https://github.com/apple/swift-nio-ssl.git", from: "2.14.0"), ], targets: [ .target(name: "WebSocketKit", dependencies: [ .product(name: "NIO", package: "swift-nio"), .product(name: "NIOCore", package: "swift-nio"), .product(name: "NIOConcurrencyHelpers", package: "swift-nio"), .product(name: "NIOFoundationCompat", package: "swift-nio"), .product(name: "NIOHTTP1", package: "swift-nio"), .product(name: "NIOSSL", package: "swift-nio-ssl"), .product(name: "NIOWebSocket", package: "swift-nio"), ]), .testTarget(name: "WebSocketKitTests", dependencies: [ .target(name: "WebSocketKit"), ]), ] )
I am using Vapor on iOS and needs to add iOS platform in Package.swift