Skip to content

Commit 01ed546

Browse files
committed
build(macOS): re-add macOS in the package but error if it's built for it
1 parent 99fe207 commit 01ed546

File tree

5 files changed

+17
-1
lines changed

5 files changed

+17
-1
lines changed

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import PackageDescription
55

66
let package = Package(
77
name: "swift-tts",
8-
platforms: [.iOS(.v15)],
8+
platforms: [.iOS(.v15), .macOS(.v13)],
99
products: [
1010
.library(name: "SwiftTTS", targets: ["SwiftTTS"]),
1111
.library(name: "SwiftTTSDependency", targets: ["SwiftTTSDependency"]),

Sources/SwiftTTS/SwiftTTS.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
#if os(macOS)
2+
#error("This library is not compatible with macOS")
3+
#endif
4+
15
import AVFoundation
26

37
public struct SwiftTTS {

Sources/SwiftTTSCombine/SwiftTTSCombine.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
#if os(macOS)
2+
#error("This library is not compatible with macOS")
3+
#endif
4+
15
import Foundation
26
import Combine
37
import AVFoundation

Sources/SwiftTTSDependency/SwiftTTSDependency.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
#if os(macOS)
2+
#error("This library is not compatible with macOS")
3+
#endif
4+
15
import AVFoundation
26
import Dependencies
37
import SwiftTTS

Tests/SwiftTTSTests/SwiftTTSTests.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
#if os(macOS)
2+
#error("This library is not compatible with macOS")
3+
#endif
4+
15
import AVFoundation
26
import SwiftTTS
37
import XCTest

0 commit comments

Comments
 (0)