From 7b743164ef1d5f7569fb451d23054937aae2faee Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sun, 28 Dec 2025 14:39:41 -0800 Subject: [PATCH] macos: fix iOS builds --- macos/Sources/Ghostty/GhosttyDelegate.swift | 2 ++ .../Sources/Ghostty/Surface View/SurfaceView+Transferable.swift | 2 ++ 2 files changed, 4 insertions(+) diff --git a/macos/Sources/Ghostty/GhosttyDelegate.swift b/macos/Sources/Ghostty/GhosttyDelegate.swift index 0ce3dced4..a9d255737 100644 --- a/macos/Sources/Ghostty/GhosttyDelegate.swift +++ b/macos/Sources/Ghostty/GhosttyDelegate.swift @@ -1,3 +1,5 @@ +import Foundation + extension Ghostty { /// This is a delegate that should be applied to your global app delegate for GhosttyKit /// to perform app-global operations. diff --git a/macos/Sources/Ghostty/Surface View/SurfaceView+Transferable.swift b/macos/Sources/Ghostty/Surface View/SurfaceView+Transferable.swift index 7eef69a71..509713309 100644 --- a/macos/Sources/Ghostty/Surface View/SurfaceView+Transferable.swift +++ b/macos/Sources/Ghostty/Surface View/SurfaceView+Transferable.swift @@ -50,7 +50,9 @@ extension UTType { static let ghosttySurfaceId = UTType(exportedAs: "com.mitchellh.ghosttySurfaceId") } +#if canImport(AppKit) extension NSPasteboard.PasteboardType { /// Pasteboard type for dragging surface IDs. static let ghosttySurfaceId = NSPasteboard.PasteboardType(UTType.ghosttySurfaceId.identifier) } +#endif