// swift-tools-version: 6.2 import PackageDescription // The kit and its tests are Foundation-only and build anywhere. The app target // is SwiftUI driving Contacts and EventKit, none of which exist on Linux, so it // is added only on macOS — otherwise `swift test` in a Linux container would // fail trying to build an executable it can never link. var targets: [Target] = [ .target(name: "IPodSyncKit"), .testTarget( name: "IPodSyncKitTests", dependencies: ["IPodSyncKit"] ), ] #if os(macOS) targets.append( .executableTarget( name: "iPodSyncApp", dependencies: ["IPodSyncKit"] ) ) #endif let package = Package( name: "iPodContactsAndCalendarSync", platforms: [.macOS(.v14)], targets: targets )