From e82338101124b04ee3bec0801650b8d2d16c614f Mon Sep 17 00:00:00 2001 From: Peter Liddle Date: Thu, 2 Jul 2026 19:06:20 -0700 Subject: [PATCH] Fix iOS compile issues. --- Package.swift | 3 ++- Sources/FileMonitor/FileMonitor.swift | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Package.swift b/Package.swift index 18641b4..89a76b0 100644 --- a/Package.swift +++ b/Package.swift @@ -6,7 +6,8 @@ import PackageDescription let package = Package( name: "FileMonitor", platforms: [ - .macOS(.v13) + .macOS(.v13), + .iOS(.v13) ], products: [ // Products define the executables and libraries a package produces, and make them visible to other packages. diff --git a/Sources/FileMonitor/FileMonitor.swift b/Sources/FileMonitor/FileMonitor.swift index 65f9c11..867fadd 100644 --- a/Sources/FileMonitor/FileMonitor.swift +++ b/Sources/FileMonitor/FileMonitor.swift @@ -50,7 +50,7 @@ public struct FileMonitor: WatcherDelegate { #elseif os(macOS) watcher = try MacosWatcher(directory: url) #else - throw FileMonitorErrors.unsupported_os() + throw FileMonitorErrors.unsupported_os #endif watcher.delegate = self