SwiftPM can't build executable with dependencies on Linux/Win platforms
Hello, I try to build cross platform package for iOS/OSX/Lin/Win platforms based on C++ & Swift code. So I made simplest package with C++ library target, Swift executable, dependent on C++ library...
View ArticleHow does `swift-testing` test discovery work?
Random question: How was test discovery implemented for swift-testing? Does the swift-testing package expose a library for IDEs to discover test functions? 2 posts - 2 participants Read full topic
View ArticleHow to build library for iOS in command line
Hello, I try to build c++ library and swift library, based on c++ library and then include it in iOS application. But I can't find a way to build it from command line. SPM always target MacOSX. I try...
View ArticleDependencies between packages written in C
Hi, everyone! I've run into issue when one package written in C depends of another package written in C. How to include headers properly? 1 post - 1 participant Read full topic
View ArticlebuildTool Plugin: Multiple commands produce
I created a build tool plugin to generate symbols from an asset catalog. The plugin calls an executable target that generates a Colors.swift file. The plugin works as expected. My app target (the one...
View ArticleWhen ever switching branches my packages are resolved properly
Scandit Data Capture SDK: github: Scandit/datacapture-spm from: 6.23.0 I had to add ScanditIDCapture so we have an option to select the which things we want to add from the package through swift...
View ArticleUsing SwiftPM as a general dependency management tool: changing the names of...
In a project, I need to compose the product from a number of different tools. Those tools are to be fetched from Git or from the file system, and they are subject to complex version dependencies. The...
View ArticleWhat effect does setting `platforms` have on Linux?
So I have a library that is not platform specific, it just requires Swift 5.5 or above. Trying to run tests on macOS it throws an error like so: error: 'withCheckedThrowingContinuation(function:_:)'...
View ArticleApple → swiftlang package rename warnings
Now that packages are moving from the "apple" org to "swiftlang," folks are encountering this warning: dependency on 'https://github.com/apple/swift-syntax' conflicts with dependency on...
View ArticleCommand package plugin to check package manifest - how to provide richer...
Hello. I'm making a package plugin that automatically generates source code for sample data files. As part of this, there some work having to be done to the package manifest. Is there a way to provide...
View ArticleSwiftPM included with Xcode 16b3 changes plugin output folder to "destination"
SwiftPM included as part of Xcode 16b3 has suddenly started adding a new "destination" folder to the directory hierarchy of build tool plugin outputs when run from the command-line. Files generated by...
View ArticleRegistry API reference implementation
github.com swiftlang/swift-package-manager/blob/main/Documentation/PackageRegistry/Registry.md # Swift Package Registry Service Specification - [1. Notations](#1-notations) - [2....
View ArticleSwift package as a dependency of Framework project
I have a swift package that has a few classes marked with @objc. I have created a framework project and added Swift package as a dependency in Framework project. I want to import my swift package...
View ArticlePackage manager problem with SwiftUI previews
I'm using the Glassfy package in my project. My project has an iOS and WatchOS app. I added Glassfy as a package dependency, but have only added the library to my iOS app. I can compile and run both...
View ArticleHas `Package.resolved` moved intentionally?
Using Xcode 16 beta, I've found that Package.resolved seems to have moved. Where it would previously be in the root of my package directory, I've found the new tooling putting it in...
View ArticleCannot build SwiftPM using build-script
Hi all, I feel like this must be a fairly basic mistake! I've tried to build the compiler and spm using utils/build-script in the swift distribution and it's failing... utils/build-script -R -p ......
View ArticleHow to iterate through set of exact dependency versions for swift package...
Hi! I'm maintaining a macros library with the following dependency on swift-syntax: let dependencies: [Package.Dependency] = [ .package(url: "https://github.com/apple/swift-syntax.git",...
View ArticlePackage registry support in Xcode
I know that Xcode doesn't have explicit support in the UI for Package Registries, but can use packages referenced by ID if the registry is set up through the CLI. I also see that xcodebuild has...
View ArticleAnnouncing swift-toolchain-sqlite
Announcing swift-toolchain-sqlite! Both SwiftPM and llbuild depend on SQLite. This adds to our list of dependencies you need when building your own toolchain, or building these components as packages....
View ArticleSwiftPM Force Me To Use Run Rosetta destinations
Hi Everyone, I face an issue when I add a custom package to my project it gives this error .. and it forced me to run in a Rosetta Destinations 1 post - 1 participant Read full topic
View Article