The Swift Package Index logo.Swift Package Index

Build Information

Failed to build OHHTTPStubs with Swift 5.9 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.9-latest swift build 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.22.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/AliSoftware/OHHTTPStubs.git
Reference: 9.1.0
Cloned https://github.com/AliSoftware/OHHTTPStubs.git into spi-builder-workspace
SUCCESS checkout https://github.com/AliSoftware/OHHTTPStubs.git at 9.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-1":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
warning: 'spi-builder-workspace': ignoring target 'OHHTTPStubsTests' in package 'spi-builder-workspace'; C language in tests is not yet supported
Building for debugging...
In file included from /host/spi-builder-workspace/Sources/OHHTTPStubs/HTTPStubsMethodSwizzling.m:28:
/host/spi-builder-workspace/Sources/OHHTTPStubs/HTTPStubsMethodSwizzling.h:28:9: fatal error: 'objc/runtime.h' file not found
#import <objc/runtime.h>
        ^~~~~~~~~~~~~~~~
1 error generated.
[0/7] Compiling OHHTTPStubs HTTPStubsMethodSwizzling.m
/host/spi-builder-workspace/Sources/OHHTTPStubs/HTTPStubsResponse.m:26:2: error: This file is expected to be compiled with ARC turned ON
#error This file is expected to be compiled with ARC turned ON
 ^
[0/7] Compiling OHHTTPStubs HTTPStubsResponse.m
[0/7] Compiling OHHTTPStubs HTTPStubsResponse+JSON.m
/host/spi-builder-workspace/Sources/OHHTTPStubs/HTTPStubs+NSURLSessionConfiguration.m:25:9: fatal error: 'Foundation/Foundation.h' file not found
#import <Foundation/Foundation.h>
        ^~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[0/7] Compiling OHHTTPStubs HTTPStubs+NSURLSessionConfiguration.m
In file included from /host/spi-builder-workspace/Sources/OHHTTPStubs/NSURLRequest+HTTPBodyTesting.m:25:
/host/spi-builder-workspace/Sources/OHHTTPStubs/include/NSURLRequest+HTTPBodyTesting.h:28:9: fatal error: 'Foundation/Foundation.h' file not found
#import <Foundation/Foundation.h>[0/7] Compiling OHHTTPStubs NSURLRequest+HTTPBodyTesting.m
In file included from /host/spi-builder-workspace/Sources/OHHTTPStubs/HTTPStubsPathHelpers.m:26:
/host/spi-builder-workspace/Sources/OHHTTPStubs/include/HTTPStubsPathHelpers.h:26:9: fatal error: 'Foundation/Foundation.h' file not found
#import <Foundation/Foundation.h>
        ^~~~~~~~~~~~~~~~~~~~~~~~~
[0/7] Compiling OHHTTPStubs HTTPStubsPathHelpers.m
/host/spi-builder-workspace/Sources/OHHTTPStubs/HTTPStubs.m:26:2: error: This file is expected to be compiled with ARC turned ON
#error This file is expected to be compiled with ARC turned ON
 ^
In file included from /host/spi-builder-workspace/Sources/OHHTTPStubs/HTTPStubs.m:32:
/host/spi-builder-workspace/Sources/OHHTTPStubs/include/HTTPStubs.h:29:9: fatal error: 'Foundation/Foundation.h' file not found
#import <Foundation/Foundation.h>
        ^~~~~~~~~~~~~~~~~~~~~~~~~
[0/7] Compiling OHHTTPStubs HTTPStubs.m
BUILD FAILURE 5.9 linux

Build Machine: Linux 2