The Swift Package Index logo.Swift Package Index

Build Information

Failed to build RNDeviceName with Swift 5.9 for Linux.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.22.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/souzainf3/RNDeviceName.git
Reference: 1.1.0
Cloned https://github.com/souzainf3/RNDeviceName.git into spi-builder-workspace
SUCCESS checkout https://github.com/souzainf3/RNDeviceName.git at 1.1.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.9
Building package at path:  spi-builder-workspace
Running build ...
docker run --rm -v "checkouts-4609320-0":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
Building for debugging...
[1/7] Compiling RNDeviceName UIDevice+Name.swift
[2/7] Compiling RNDeviceName DeviceFamily.swift
[3/7] Compiling RNDeviceName DeviceType.swift
[4/7] Compiling RNDeviceName Device+Model.swift
[5/7] Compiling RNDeviceName Device+Mapper.swift
[6/7] Emitting module RNDeviceName
[7/7] Compiling RNDeviceName Device.swift
/host/spi-builder-workspace/Sources/Device.swift:67:43: error: 'ProcessInfo' initializer is inaccessible due to 'internal' protection level
           let simulatorModelIdentifier = ProcessInfo().environment["SIMULATOR_MODEL_IDENTIFIER"] {
                                          ^
Foundation.ProcessInfo (internal):3:23: note: 'init()' declared here
    override internal init()
                      ^
error: fatalError
BUILD FAILURE 5.9 linux

Build Machine: Linux 2