diff --git a/TelegramCore/JSON.swift b/TelegramCore/JSON.swift index 1e97fff39b..c202e97670 100644 --- a/TelegramCore/JSON.swift +++ b/TelegramCore/JSON.swift @@ -1,5 +1,9 @@ import Foundation +#if os(macOS) +import PostboxMac +#else import Postbox +#endif public indirect enum JSON: PostboxCoding, Equatable { case null diff --git a/TelegramCore/SplitTest.swift b/TelegramCore/SplitTest.swift index 9ae33f4dbe..2c5ccbe724 100644 --- a/TelegramCore/SplitTest.swift +++ b/TelegramCore/SplitTest.swift @@ -1,5 +1,9 @@ import Foundation +#if os(macOS) +import PostboxMac +#else import Postbox +#endif public protocol SplitTestEvent: RawRepresentable where RawValue == String { }