Skip to content

Commit

Permalink
Hide SpellbookFoundationObjC target from being exposed as public module
Browse files Browse the repository at this point in the history
  • Loading branch information
Alkenso committed Dec 11, 2024
1 parent 9950eea commit 8cc9e10
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion Sources/SpellbookFoundation/Common/Exceptions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion Sources/SpellbookFoundation/Low Level/AuditToken.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#if os(macOS)

import Foundation
@_implementationOnly import SpellbookFoundationObjC
@_implementationOnly import _SpellbookFoundationObjC

extension audit_token_t {
/// Returns current task audit token.
Expand Down

0 comments on commit 8cc9e10

Please sign in to comment.