Build Information
Failed to build RNDeviceName with Swift 5.7 for Linux.
Build Command
docker run --rm -v "checkouts-4606859-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.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.7
Building package at path: spi-builder-workspace
Running build ...
docker run --rm -v "checkouts-4606859-1":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.7-latest swift build 2>&1
Building for debugging...
[1/7] Compiling RNDeviceName UIDevice+Name.swift
[2/7] Compiling RNDeviceName DeviceType.swift
[3/7] Compiling RNDeviceName DeviceFamily.swift
[4/7] Emitting module RNDeviceName
[5/7] Compiling RNDeviceName Device+Mapper.swift
[6/7] Compiling RNDeviceName Device+Model.swift
[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()
^
BUILD FAILURE 5.7 linux
Build Machine: Linux 1