The Swift Package Index logo.Swift Package Index

Build Information

Failed to build CocoaMQTT with Swift 5.8 for Linux.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.24.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/emqx/CocoaMQTT.git
Reference: 2.1.8
Cloned https://github.com/emqx/CocoaMQTT.git into /host/spi-builder-workspace
Revision (git rev-parse @):
SUCCESS checkout https://github.com/emqx/CocoaMQTT.git at 2.1.8
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.8
Building package at path:  /host/spi-builder-workspace
Running build ...
bash -c docker run --rm -v "checkouts-4609320-0":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.8-latest swift build 2>&1
Fetching https://github.com/daltoniam/Starscream.git
Fetching https://github.com/leeway1208/MqttCocoaAsyncSocket
[1/3835] Fetching mqttcocoaasyncsocket
[2034/8608] Fetching mqttcocoaasyncsocket, starscream
Fetched https://github.com/daltoniam/Starscream.git (0.58s)
Fetched https://github.com/leeway1208/MqttCocoaAsyncSocket (0.58s)
Computing version for https://github.com/daltoniam/Starscream.git
Computed https://github.com/daltoniam/Starscream.git at 4.0.6 (0.37s)
Computing version for https://github.com/leeway1208/MqttCocoaAsyncSocket
Computed https://github.com/leeway1208/MqttCocoaAsyncSocket at 1.0.8 (0.35s)
Creating working copy for https://github.com/leeway1208/MqttCocoaAsyncSocket
Working copy of https://github.com/leeway1208/MqttCocoaAsyncSocket resolved at 1.0.8
Creating working copy for https://github.com/daltoniam/Starscream.git
Working copy of https://github.com/daltoniam/Starscream.git resolved at 4.0.6
Building for debugging...
In file included from /host/spi-builder-workspace/.build/checkouts/MqttCocoaAsyncSocket/Source/GCD/MGCDAsyncUdpSocket.m:11:
/host/spi-builder-workspace/.build/checkouts/MqttCocoaAsyncSocket/Source/GCD/MGCDAsyncUdpSocket.h:11:9: fatal error: 'Foundation/Foundation.h' file not found
#import <Foundation/Foundation.h>
        ^~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[0/2] Compiling MqttCocoaAsyncSocket MGCDAsyncUdpSocket.m
In file included from /host/spi-builder-workspace/.build/checkouts/MqttCocoaAsyncSocket/Source/GCD/MGCDAsyncSocket.m:11:
/host/spi-builder-workspace/.build/checkouts/MqttCocoaAsyncSocket/Source/GCD/MGCDAsyncSocket.h:11:9: fatal error: 'Foundation/Foundation.h' file not found
#import <Foundation/Foundation.h>
        ^~~~~~~~~~~~~~~~~~~~~~~~~
[0/2] Compiling MqttCocoaAsyncSocket MGCDAsyncSocket.m
BUILD FAILURE 5.8 linux

Build Machine: Linux 2