Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: product 'SPMUtility' not found #30

Open
remover opened this issue Apr 29, 2020 · 2 comments
Open

error: product 'SPMUtility' not found #30

remover opened this issue Apr 29, 2020 · 2 comments

Comments

@remover
Copy link

remover commented Apr 29, 2020

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

@chojnac
Copy link

chojnac commented May 5, 2020

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.

@kalkwarf
Copy link
Contributor

kalkwarf commented May 5, 2020

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

kalkwarf pushed a commit that referenced this issue May 5, 2020
Recent versions of SPM have split out the utility functions into `SwiftToolsSupport`, and renamed the module to `SPMUtility`. This PR migrates to the newer interface.

Fixes issue #30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants