Blog by Frank

Swift Package Manager

.swiftpm

Swift Playgrounds App Projects

// swift-tools-version: 5.7

// WARNING:
// This file is automatically generated.
// Do not edit it by hand because the contents will be replaced.

import PackageDescription
import AppleProductTypes

let package = Package(
    name: "Regex Go",
    platforms: [
        .iOS("16.0")
    ],
    products: [
        .iOSApplication(
            name: "YOUR-APP-NAME",
            targets: ["AppModule"],
            bundleIdentifier: "YOUR-BUNDLE-IDENTIFIER",
            teamIdentifier: "YOUR-TEAM-Identifier",
            displayVersion: "1.0",
            bundleVersion: "1",
            appIcon: .asset("AppIcon"),
            accentColor: .asset("AccentColor"),
            supportedDeviceFamilies: [
                .pad,
                .phone
            ],
            supportedInterfaceOrientations: [
                .portrait,
                .landscapeRight,
                .landscapeLeft,
                .portraitUpsideDown(.when(deviceFamilies: [.pad]))
            ],
            appCategory: .utilities
        )
    ],
    targets: [
        .executableTarget(
            name: "AppModule",
            path: ".",
            resources: [
                .process("Resources")
            ],
            swiftSettings: [
                // .enableUpcomingFeature("BareSlashRegexLiterals")
                .unsafeFlags(["-enable-bare-slash-regex"])
            ]
        )
    ]
)