Skip to content

Commit 89c1f07

Browse files
Muskupecliclaude
andcommitted
Fix CocoaPods build: guard KBHostArbiterHookObjC import with SWIFT_PACKAGE
Under CocoaPods, subspecs are merged into a single pod module, so there is no standalone `KBHostArbiterHookObjC` Clang module to import. The ObjC header is exposed via the pod's umbrella header. Guarding the import with `#if SWIFT_PACKAGE` keeps SPM working while unblocking CocoaPods consumers. Bumps podspec to 1.0.1. Fixes #1, #2. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent f2ae17a commit 89c1f07

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

‎KeyboardHostBundleID.podspec‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'KeyboardHostBundleID'
3-
s.version = '1.0.0'
3+
s.version = '1.0.1'
44
s.summary = 'Resolve the host app Bundle ID from an iOS custom keyboard extension (iOS 16 – iOS 26.4+).'
55
s.description = <<-DESC
66
Drop-in library for iOS third-party keyboard extensions (UIInputViewController)

‎Sources/KeyboardHostBundleID/KeyboardHost.swift‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99

1010
import UIKit
1111
import Foundation
12+
#if SWIFT_PACKAGE
1213
@_implementationOnly import KBHostArbiterHookObjC
14+
#endif
1315

1416
/// Public API for resolving the host app's Bundle ID from inside a keyboard
1517
/// extension.

0 commit comments

Comments
 (0)