The Swift Package Index logo.Swift Package Index

Build Information

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

Build Log

========================================
RunAll
========================================
Builder version: 4.19.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/SDWebImage/SDWebImagePhotosPlugin.git
Reference: 1.2.0
Cloned https://github.com/SDWebImage/SDWebImagePhotosPlugin.git into spi-builder-workspace
SUCCESS checkout https://github.com/SDWebImage/SDWebImagePhotosPlugin.git at 1.2.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.9
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.9-latest swift build 2>&1
Fetching https://github.com/SDWebImage/SDWebImage.git
[1/23617] Fetching sdwebimage
Fetched https://github.com/SDWebImage/SDWebImage.git (1.45s)
Computing version for https://github.com/SDWebImage/SDWebImage.git
Computed https://github.com/SDWebImage/SDWebImage.git at 5.16.0 (0.29s)
Creating working copy for https://github.com/SDWebImage/SDWebImage.git
Working copy of https://github.com/SDWebImage/SDWebImage.git resolved at 5.16.0
Building for debugging...
In file included from /host/spi-builder-workspace/SDWebImagePhotosPlugin/Classes/PHAsset+SDWebImagePhotosPlugin.m:9:
/host/spi-builder-workspace/SDWebImagePhotosPlugin/Classes/PHAsset+SDWebImagePhotosPlugin.h:9:9: fatal error: 'Photos/Photos.h' file not found
#import <Photos/Photos.h>
        ^~~~~~~~~~~~~~~~~
1 error generated.
[0/6] Compiling PHAsset+SDWebImagePhotosPlugin.m
[0/6] Compiling SDImagePhotosLoader.m
[0/6] Compiling SDWebImagePhotosError.m
[0/6] Compiling NSURL+SDWebImagePhotosPlugin.m
While building module 'SDWebImage' imported from /host/spi-builder-workspace/SDWebImagePhotosPlugin/Classes/SDWebImagePhotosDefine.h:10:
In file included from <module-includes>:1:
In file included from /host/spi-builder-workspace/.build/checkouts/SDWebImage/SDWebImage/include/SDWebImage/SDWebImage.h:10:
/host/spi-builder-workspace/.build/checkouts/SDWebImage/SDWebImage/include/SDWebImage/SDWebImageCompat.h:10:9: fatal error: 'TargetConditionals.h' file not found
#import <TargetConditionals.h>
        ^~~~~~~~~~~~~~~~~~~~~~
[0/6] Compiling SDWebImagePhotosDefine.m
In file included from /host/spi-builder-workspace/SDWebImagePhotosPlugin/Classes/PHImageRequestOptions+SDWebImagePhotosPlugin.m:9:
/host/spi-builder-workspace/SDWebImagePhotosPlugin/Classes/PHImageRequestOptions+SDWebImagePhotosPlugin.h:9:9: fatal error: 'Photos/Photos.h' file not found
#import <Photos/Photos.h>
        ^~~~~~~~~~~~~~~~~
[0/6] Compiling PHImageRequestOptions+SDWebImagePhotosPlugin.m
BUILD FAILURE 5.9 linux

Build Machine: Linux 1