Skip to content

Commit 16c9dff

Browse files
leogdionclaude
andcommitted
Fix Android build: restrict kCFBundleVersionKey to Darwin platforms
The kCFBundleVersionKey constant is only available on Apple platforms (macOS, iOS, etc.) through CoreFoundation. The code was excluding Linux but not Android. Changed to use canImport(Darwin) to properly restrict to Apple platforms only. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent 8444ea5 commit 16c9dff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/BushelFoundation/Version.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public struct Version: CustomStringConvertible, Sendable {
4343
case prelease = "BrightDigitPrereleaseInfo"
4444

4545
var value: String {
46-
#if !os(Linux)
46+
#if canImport(Darwin)
4747
if self == .bundleVersion {
4848
return kCFBundleVersionKey as String
4949
}

0 commit comments

Comments
 (0)