You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
FHIRModels does not build on Linux — unconditional import os in FHIRDecodingDepthTracker.swift #43
The os framework (OSLog, os_signpost, etc.) is a Darwin-only framework and is not available on Linux or Windows.
Steps to reproduce
Create a Swift package on Linux (or use a swift:6.2-jammy Docker image) that depends on FHIRModels >= 0.9.0
Run swift build
Error:
FHIRModels/Sources/FMCore/FHIRDecodingDepthTracker.swift:20:8: error: no such module 'os'
Impact
Any server-side Swift project using FHIRModels on Linux (Docker, cloud VMs, CI on Linux runners) is blocked from building. This affects FHIR server implementations that want to run in containerised environments.
Suggested fix
Wrap the import os and any os-dependent code with a platform check:
Activity
Fix for Base64Binary; compile on Linux again