From 8cc9e1015edbec941bdc71259702a32fa722710a Mon Sep 17 00:00:00 2001 From: "Alkenso (Vladimir Vashurkin)" Date: Wed, 11 Dec 2024 20:11:09 +0200 Subject: [PATCH] Hide SpellbookFoundationObjC target from being exposed as public module --- Package.swift | 5 +++-- Sources/SpellbookFoundation/Common/Exceptions.swift | 2 +- Sources/SpellbookFoundation/Low Level/AuditToken.swift | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Package.swift b/Package.swift index 8a3ea86..d9b38b2 100644 --- a/Package.swift +++ b/Package.swift @@ -29,13 +29,14 @@ let package = Package( targets: [ .target( name: "SpellbookFoundation", - dependencies: ["SpellbookFoundationObjC"], + dependencies: ["_SpellbookFoundationObjC"], linkerSettings: [ .linkedLibrary("bsm", .when(platforms: [.macOS])), ] ), .target( - name: "SpellbookFoundationObjC", + name: "_SpellbookFoundationObjC", + path: "Sources/SpellbookFoundationObjC", publicHeadersPath: "." ), .target( diff --git a/Sources/SpellbookFoundation/Common/Exceptions.swift b/Sources/SpellbookFoundation/Common/Exceptions.swift index 14124ac..cbc02e9 100644 --- a/Sources/SpellbookFoundation/Common/Exceptions.swift +++ b/Sources/SpellbookFoundation/Common/Exceptions.swift @@ -20,7 +20,7 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. -@_implementationOnly import SpellbookFoundationObjC +@_implementationOnly import _SpellbookFoundationObjC import Foundation diff --git a/Sources/SpellbookFoundation/Low Level/AuditToken.swift b/Sources/SpellbookFoundation/Low Level/AuditToken.swift index 1d1e6a8..4b04e37 100644 --- a/Sources/SpellbookFoundation/Low Level/AuditToken.swift +++ b/Sources/SpellbookFoundation/Low Level/AuditToken.swift @@ -23,7 +23,7 @@ #if os(macOS) import Foundation -@_implementationOnly import SpellbookFoundationObjC +@_implementationOnly import _SpellbookFoundationObjC extension audit_token_t { /// Returns current task audit token.