The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SDWebImagePhotosPlugin with Swift 5.10 for Linux.

Build Command

bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.29.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/SDWebImage/SDWebImagePhotosPlugin.git
Reference: master
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/SDWebImage/SDWebImagePhotosPlugin
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 50ad20e Bumped version to 1.2.0
Cloned https://github.com/SDWebImage/SDWebImagePhotosPlugin.git
Revision (git rev-parse @):
50ad20e10396527afd8e4a4b698bd5df76efc9bc
SUCCESS checkout https://github.com/SDWebImage/SDWebImagePhotosPlugin.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.10
Building package at path:  $workDir
https://github.com/SDWebImage/SDWebImagePhotosPlugin.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Fetching https://github.com/SDWebImage/SDWebImage.git
[1/24489] Fetching sdwebimage
Fetched https://github.com/SDWebImage/SDWebImage.git from cache (1.53s)
Computing version for https://github.com/SDWebImage/SDWebImage.git
Computed https://github.com/SDWebImage/SDWebImage.git at 5.18.11 (0.39s)
Creating working copy for https://github.com/SDWebImage/SDWebImage.git
Working copy of https://github.com/SDWebImage/SDWebImage.git resolved at 5.18.11
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
In file included from /host/spi-builder-workspace/SDWebImagePhotosPlugin/Classes/SDWebImagePhotosError.m:9:
/host/spi-builder-workspace/SDWebImagePhotosPlugin/Classes/SDWebImagePhotosError.h:9:9: fatal error: 'Foundation/Foundation.h' file not found
#import <Foundation/Foundation.h>
        ^~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[0/6] Compiling SDWebImagePhotosError.m
[0/6] Compiling SDWebImagePhotosDefine.m
In file included from /host/spi-builder-workspace/SDWebImagePhotosPlugin/Classes/NSURL+SDWebImagePhotosPlugin.m:9:
/host/spi-builder-workspace/SDWebImagePhotosPlugin/Classes/NSURL+SDWebImagePhotosPlugin.h:9:9: fatal error: 'Foundation/Foundation.h' file not found
#import <Foundation/Foundation.h>
        ^~~~~~~~~~~~~~~~~~~~~~~~~
[0/6] Compiling NSURL+SDWebImagePhotosPlugin.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
While building module 'SDWebImage' imported from /host/spi-builder-workspace/SDWebImagePhotosPlugin/Classes/SDImagePhotosLoader.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 SDImagePhotosLoader.m
[0/1] Planning build
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 PHImageRequestOptions+SDWebImagePhotosPlugin.m
[0/6] Compiling NSURL+SDWebImagePhotosPlugin.m
[0/6] Compiling SDWebImagePhotosError.m
[0/6] Compiling SDImagePhotosLoader.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
BUILD FAILURE 5.10 linux

Build Machine: Linux 1