xcprojectlint icon indicating copy to clipboard operation
xcprojectlint copied to clipboard

error: product 'SPMUtility' not found

Open remover opened this issue 4 years ago • 2 comments

release 0.0.6

when running

swift package update make build

i get:

swift build 'llbuild' /Users/donalobrien/Downloads/xcprojectlint-0.0.6/.build/checkouts/swift-llbuild: warning: ignoring broken symlink /Users/donalobrien/Downloads/xcprojectlint-0.0.6/.build/checkouts/swift-llbuild/lib/llvm/Demangle/include/llvm/Demangle/include/llvm/Demangle/include/llvm/Demangle/include/llvm/Demangle/include/llvm/Demangle/include/llvm/Demangle/include/llvm/Demangle/include/llvm/Demangle/include/llvm/Demangle/include/llvm/Demangle/include/llvm/Demangle/include/llvm/Demangle/include/llvm/Demangle/include/llvm/Demangle/include/llvm/Demangle/include/llvm/Demangle/include/llvm/Demangle/include/llvm/Demangle/include/llvm/Demangle/include/llvm/Demangle/include/llvm/Demangle/include/llvm/Demangle/include/llvm/Demangle/include/llvm/Demangle/include/llvm/Demangle/include/llvm/Demangle/include/llvm/Demangle/include/llvm/Demangle/include/llvm/Demangle/include/llvm/Demangle/include/llvm/Demangle/include/llvm/Demangle/include/llvm 'xcprojectlint' /Users/donalobrien/Downloads/xcprojectlint-0.0.6: error: product 'SPMUtility' not found. It is required by target 'xcprojectlint-package'. warning: dependency 'SwiftPM' is not used by any target

remover avatar Apr 29 '20 07:04 remover

In the latest spm the SPMUtility is removed. As a temporary solution you can change in Package.swift dependency version from

.package(url: "https://github.com/apple/swift-package-manager.git", version: "0.1.0"),

to

.package(url: "https://github.com/apple/swift-package-manager.git", .exact( "0.4.0")),

update: this tool require swift-package-manager in version 0.4.0, otherwise it won't compile.

chojnac avatar May 05 '20 11:05 chojnac

Thank you for the feedback. I'll see what we can do about removing that dependency.

kalkwarf avatar May 05 '20 13:05 kalkwarf