The Swift Package Index logo.Swift Package Index

Build Information

Failed to build CodeScanner with Swift 5.8 for Linux.

Build Command

bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.8-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.34.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/twostraws/CodeScanner.git
Reference: 2.4.1
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/twostraws/CodeScanner
 * tag               2.4.1      -> FETCH_HEAD
HEAD is now at 944a6a1 Merge pull request #132 from psalzAppDev/main
Cloned https://github.com/twostraws/CodeScanner.git
Revision (git rev-parse @):
944a6a1ca030dbd890e647a678e718fc2115d35c
SUCCESS checkout https://github.com/twostraws/CodeScanner.git at 2.4.1
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.8
Building package at path:  $workDir
https://github.com/twostraws/CodeScanner.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.8-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/Sources/CodeScanner/PrivacyInfo.xcprivacy
Building for debugging...
[0/1] Copying Assets.xcassets
[2/6] Compiling CodeScanner CodeScanner.swift
/host/spi-builder-workspace/Sources/CodeScanner/AVCaptureDevice+bestForBuiltInCamera.swift:9:8: error: no such module 'AVFoundation'
import AVFoundation
       ^
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/6] Emitting module CodeScanner
/host/spi-builder-workspace/Sources/CodeScanner/AVCaptureDevice+bestForBuiltInCamera.swift:9:8: error: no such module 'AVFoundation'
import AVFoundation
       ^
[4/6] Compiling CodeScanner AVCaptureDevice+bestForBuiltInCamera.swift
/host/spi-builder-workspace/Sources/CodeScanner/AVCaptureDevice+bestForBuiltInCamera.swift:9:8: error: no such module 'AVFoundation'
import AVFoundation
       ^
[5/6] Compiling CodeScanner resource_bundle_accessor.swift
/host/spi-builder-workspace/Sources/CodeScanner/AVCaptureDevice+bestForBuiltInCamera.swift:9:8: error: no such module 'AVFoundation'
import AVFoundation
       ^
[6/6] Compiling CodeScanner ScannerViewController.swift
/host/spi-builder-workspace/Sources/CodeScanner/AVCaptureDevice+bestForBuiltInCamera.swift:9:8: error: no such module 'AVFoundation'
import AVFoundation
       ^
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/Sources/CodeScanner/PrivacyInfo.xcprivacy
[0/1] Planning build
Building for debugging...
error: emit-module command failed with exit code 1 (use -v to see invocation)
[1/5] Emitting module CodeScanner
/host/spi-builder-workspace/Sources/CodeScanner/AVCaptureDevice+bestForBuiltInCamera.swift:9:8: error: no such module 'AVFoundation'
import AVFoundation
       ^
[2/5] Compiling CodeScanner AVCaptureDevice+bestForBuiltInCamera.swift
/host/spi-builder-workspace/Sources/CodeScanner/AVCaptureDevice+bestForBuiltInCamera.swift:9:8: error: no such module 'AVFoundation'
import AVFoundation
       ^
[3/5] Compiling CodeScanner ScannerViewController.swift
/host/spi-builder-workspace/Sources/CodeScanner/AVCaptureDevice+bestForBuiltInCamera.swift:9:8: error: no such module 'AVFoundation'
import AVFoundation
       ^
[4/5] Compiling CodeScanner CodeScanner.swift
/host/spi-builder-workspace/Sources/CodeScanner/AVCaptureDevice+bestForBuiltInCamera.swift:9:8: error: no such module 'AVFoundation'
import AVFoundation
       ^
[5/5] Compiling CodeScanner resource_bundle_accessor.swift
/host/spi-builder-workspace/Sources/CodeScanner/AVCaptureDevice+bestForBuiltInCamera.swift:9:8: error: no such module 'AVFoundation'
import AVFoundation
       ^
BUILD FAILURE 5.8 linux

Build Machine: Linux 2