The Swift Package Index logo.Swift Package Index

Build Information

Failed to build LocalizedDeviceModel with Swift 5.7 for Linux.

Build Command

docker run --rm -v "checkouts-4609320-1":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.7-latest swift build 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.22.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/bixcorp/BDLocalizedDevicesModels.git
Reference: 3.3.0
Cloned https://github.com/bixcorp/BDLocalizedDevicesModels.git into spi-builder-workspace
SUCCESS checkout https://github.com/bixcorp/BDLocalizedDevicesModels.git at 3.3.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.7
Building package at path:  spi-builder-workspace
Running build ...
docker run --rm -v "checkouts-4609320-1":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.7-latest swift build 2>&1
Building for debugging...
[0/9] Copying DeviceModel.strings
[5/9] Copying Info.plist
[5/9] Copying DeviceModel.strings
[10/14] Emitting module LocalizedDeviceModel
[11/14] Compiling LocalizedDeviceModel UIDevice+LocalizedModel.swift
[12/14] Compiling LocalizedDeviceModel WKInterfaceDevice+LocalizedModel.swift
[13/14] Compiling LocalizedDeviceModel resource_bundle_accessor.swift
[14/14] Compiling LocalizedDeviceModel LocalizedModel.swift
/host/spi-builder-workspace/Sources/LocalizedDeviceModel/LocalizedModel.swift:14:22: error: 'ProcessInfo' initializer is inaccessible due to 'internal' protection level
    if let machine = ProcessInfo().environment["SIMULATOR_MODEL_IDENTIFIER"] {
                     ^
Foundation.ProcessInfo (internal):3:23: note: 'init()' declared here
    override internal init()
                      ^
/host/spi-builder-workspace/Sources/LocalizedDeviceModel/LocalizedModel.swift:18:9: error: cannot find 'sysctlbyname' in scope
        sysctlbyname("hw.machine", nil, &size, nil, 0)
        ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/LocalizedDeviceModel/LocalizedModel.swift:20:9: error: cannot find 'sysctlbyname' in scope
        sysctlbyname("hw.machine", &machine, &size, nil, 0)
        ^~~~~~~~~~~~
BUILD FAILURE 5.7 linux

Build Machine: Linux 2