The Swift Package Index logo.Swift Package Index

Build Information

Failed to build ORSSerialPort 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.19.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/armadsen/ORSSerialPort.git
Reference: 2.1.0
Cloned https://github.com/armadsen/ORSSerialPort.git into spi-builder-workspace
SUCCESS checkout https://github.com/armadsen/ORSSerialPort.git at 2.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...
In file included from /host/spi-builder-workspace/Source/ORSSerialPacketDescriptor.m:27:
/host/spi-builder-workspace/Source/ORSSerialPacketDescriptor.h:27:9: fatal error: 'Foundation/Foundation.h' file not found
#import <Foundation/Foundation.h>
        ^~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[0/5] Compiling ORSSerial ORSSerialPacketDescriptor.m
[0/5] Compiling ORSSerial ORSSerialRequest.m
[0/5] Compiling ORSSerial ORSSerialBuffer.m
/host/spi-builder-workspace/Source/ORSSerialPortManager.m:28:2: error: ORSSerialPortManager.m must be compiled with ARC. Either turn on ARC for the project or set the -fobjc-arc flag for ORSSerialPortManager.m in the Build Phases for this target
#error ORSSerialPortManager.m must be compiled with ARC. Either turn on ARC for the project or set the -fobjc-arc flag for ORSSerialPortManager.m in the Build Phases for this target
 ^
In file included from /host/spi-builder-workspace/Source/ORSSerialPortManager.m:31:
/host/spi-builder-workspace/Source/ORSSerialPortManager.h:27:9: fatal error: 'Foundation/Foundation.h' file not found
#import <Foundation/Foundation.h>
        ^~~~~~~~~~~~~~~~~~~~~~~~~
[0/5] Compiling ORSSerial ORSSerialPortManager.m
[0/5] Compiling ORSSerial ORSSerialPort.m
BUILD FAILURE 5.9 linux

Build Machine: Linux 2