diff --git a/AppleLibs/Utils/CoreData/CoreData+Extended.swift b/AppleLibs/Utils/CoreData/CoreData+Extended.swift
index 50bcd876dd9489c336dc7b4249e51c5eaa118931..137b0726d5500927c2ac27baa9959db3cb645c96 100644
--- a/AppleLibs/Utils/CoreData/CoreData+Extended.swift
+++ b/AppleLibs/Utils/CoreData/CoreData+Extended.swift
@@ -6,6 +6,7 @@
 //  Copyright © 2019 Tobias. All rights reserved.
 //
 
+#if os(iOS)
 import UIKit
 import CoreData
 import Resolver
@@ -128,3 +129,4 @@ extension NSManagedObject
         }
     }
 }
+#endif
diff --git a/AppleLibs/Utils/String/String+Html.swift b/AppleLibs/Utils/String/String+Html.swift
index f867d3019ecf9401199c209f2f761142e8240a33..4482b6a348119bce0b2282b70e5a73ea08f608c0 100644
--- a/AppleLibs/Utils/String/String+Html.swift
+++ b/AppleLibs/Utils/String/String+Html.swift
@@ -5,7 +5,11 @@
 //  Created by Tobias on 24.03.21.
 //
 
+#if os(iOS)
 import UIKit
+#elseif os(macOS)
+import AppKit
+#endif
 
 public extension String {
     var htmlToAttributedString: NSMutableAttributedString? {
diff --git a/AppleLibs/Utils/String/String+Size.swift b/AppleLibs/Utils/String/String+Size.swift
index 9bd11f6e5acd5160f51f672b59ca52fe2184491b..0d55a86e5e6971d54c42583f304f3546ffc0ccb0 100644
--- a/AppleLibs/Utils/String/String+Size.swift
+++ b/AppleLibs/Utils/String/String+Size.swift
@@ -5,6 +5,7 @@
 //  Created by Tobias on 04.04.21.
 //
 
+#if os(iOS)
 import UIKit
 
 public extension String {
@@ -22,3 +23,4 @@ public extension String {
         return ceil(boundingBox.width)
     }
 }
+#endif
diff --git a/AppleLibs/View/UIColor+Hex.swift b/AppleLibs/View/UIColor+Hex.swift
index b8ef70044c00bb79d1ff933fe491df030d629cd4..999faf18264cff0deeba979f955ce1cab173b71e 100644
--- a/AppleLibs/View/UIColor+Hex.swift
+++ b/AppleLibs/View/UIColor+Hex.swift
@@ -5,6 +5,7 @@
 //  Created by Tobias on 15.07.21.
 //
 
+#if os(iOS)
 import UIKit
 
 public extension UIColor {
@@ -19,3 +20,4 @@ public extension UIColor {
                   alpha: alpha)
     }
 }
+#endif
diff --git a/AppleLibs/View/UIViewController+Screenshot.swift b/AppleLibs/View/UIViewController+Screenshot.swift
index 585cf87603ca3b8ca8d372b451c4fdc532f5434b..5567be8f49e26ff0a9f95615f37cc22a6453dff5 100644
--- a/AppleLibs/View/UIViewController+Screenshot.swift
+++ b/AppleLibs/View/UIViewController+Screenshot.swift
@@ -5,6 +5,7 @@
 //  Created by Tobias on 29.04.21.
 //
 
+#if os(iOS)
 import UIKit
 
 extension UIViewController
@@ -28,3 +29,4 @@ extension UIViewController
         return screenshotImage
     }
 }
+#endif