Quantcast
Channel: Package Manager - Swift Forums
Browsing index pages (236 articles)
↧

Generate SBOM for package dependencies of Xcode project?

Is there a way to repurpose the Software Bill of Materials (SBOM) Generation for Swift Package Manager that shipped with Swift 6.4 in Xcode 27 to generate an SBOM for the package dependencies of an...

View Article


Swift-Syntax Prebuilts for use in iOS apps at run-time?

It seems, per [Preview] Swift-Syntax Prebuilts for Macros , that Swift-Syntax Prebuilts are expressly intended to allow uses for macros. If an iOS library depends on Swift-Syntax for doing things at...

View Article


Unsupported flags in systemLibrary pkg-config files

The Qt pkg-config files ship as e.g: prefix=/Users/torarne/build/qt/6.x-prefix-no-fw/install exec_prefix=${prefix} bindir=${prefix}/bin libexecdir=${prefix}/libexec libdir=${prefix}/lib...

View Article

Running executables directly from URL

Greetings. Is there a way to pull a package and execute its commands directly from the URL, taking into account dependancy rules, eg: swift run --package-url https://github.com/jjrscott/echo...

View Article

Allowing plugins to generate mixed-language sources

With the SE-0541 PR merged, is there anything that would speak against allowing plugins to generate C files into Swift targets when experimentalCGen is enabled? I put an agent to the task and for my...

View Article


Intermittent error with symlinks in package registry zip file

I'm trying to create a package registry mirror of https://github.com/nicklockwood/SwiftFormat/ with the prebuilt binary removed. After I changed my Package.swift file to use the new source, I get the...

View Article

Is `module.modulemap` required for C/Objc targets?

I have an issue with swift run --repl when using Swift 6.4 beta (swift-driver version: 1.168.4 Apple Swift version 6.4 (swiftlang-6.4.0.25.4 clang-2100.3.25.1) – Target: arm64-apple-macosx27.0.0). The...

View Article

Submodule not included in `swift package archive-source` output

I have a package that wraps a C library in a way that's easy for automated cve scanners to understand (it is added as a git submodule). If I create a zip file with swift package archive-source...

View Article


Invalid registry source archive checksum

Swift 6.3.3, Linux Mint 22.3 x86_64 Project/branch: Colors the old tags backed up. When I run the command swift package --cache-path ./.spm-cache --only-use-versions-from-resolved-file resolve, I get...

View Article


Multi-language library

I'm writing some software on Linux and using Swift Package Manager 6.2 where I have two things: Project A is a library with C, C++, and Swift code, let's say the Package.swift targets are: TC, TCpp...

View Article

Static Linux SDK regression on 6.4? Duplicate symbols

Hello, I ran into what looks like a Static Linux SDK regression on 6.4 and filed swiftlang/swift#90196. Short version: a package that links two vendored BoringSSL copies (swift-nio-ssl + swift-crypto)...

View Article

Image may be NSFW.
Clik here to view.

Looking for external reviewer for the package registry implementation of Forgejo

Anyone competent enough in Golang from the @build-and-packaging-workgroup to review my changes? Codeberg.org Update swift package registry to use the metadata schema from the official... fixes #12108...

View Article

How to define fallback paths for package resolution?

I'm developing a project that includes two local Swift packages, which define static library targets. One of these packages depends on the other one. Presently it imports it, via...

View Article


Metal support

So, when will Metal support a package manager? The use case is very simple. We have a C (C++) module that contains a header file with a core structure used in Swift targets and shaders. module...

View Article

Why does it take so long to build and test SwiftPM on the CI?

This has been bothering me lately, as it now takes the same amount of time to build, test, and install SwiftPM as to build, test, and install the Swift compiler itself, just over an hour on linux....

View Article


Image may be NSFW.
Clik here to view.

Xcodebuild wants to use confidential information stored in “github.com” in...

Hi, I am running xcodebuild through Fastlane in a macOS CI environment and I constantly get this popup: xcodebuild wants to use your confidential information stored in "github.com" in your keychain....

View Article

Supporting `safe.bareRepository = explicit` in Swift Package Manager

Open issue: Git config setting `safe.bareRepository=explicit` can break dependency resolution · Issue #8068 · swiftlang/swift-package-manager · GitHub Git added the configuration option...

View Article


Image may be NSFW.
Clik here to view.

Multiple Major Versions of a Package in SwiftPM: Opening the Discussion

One of the more frequently requested capabilities in SwiftPM is the ability to depend on multiple major versions of the same package within a single project. Today, if two parts of your dependency...

View Article

Package registry feedback

I'm testing SPM's package registry related functions with this version of Forgejo: https://codeberg.org/forgejo/forgejo/pulls/12200 When I wanted to swift package-registry set...

View Article

Speeding up partial package updates

Hey folks, I have a frequent workflow where I update a single dependency in a Swift package. Unfortunately, this is quite slow, taking over a minute for my use case. I took a crack at implementing a...

View Article
Browsing index pages (236 articles)


Latest Images