Quantcast
Channel: Package Manager - Swift Forums
Browsing all 188 articles
Browse latest View live
↧

Help regarding adding new property to Package.swift and prepare the build...

Hi, I'm currently working on my proposal implementation. I'm struggling a bit with understanding the structure of the SPM codebase. I think I have added the new License property to all parts where...

View Article


Xcode Packages folder still best practice?

I read this article: Managing files and folders in your Xcode project where it suggests grouping local packages in a Packages folder. Is this still considered best practice? Thanks 1 post - 1...

View Article


Improving SwiftPM progress bars

Hi SwiftPM users! I've been a bit frustrated by the current swift build progress animation and have been prototyping a more modern replacement. Heres a short demo video of it in action: Blast Progress...

View Article

Image may be NSFW.
Clik here to view.

Renaming `swift package edit` `packageName` argument

Hey folks! I was recently taking a look at this issue and noticed that the edit command would make use of the positional argument packageName to fetch the corresponding package from a workspace's...

View Article

Image may be NSFW.
Clik here to view.

Failed to resolve dependencies Dependencies could not be resolved because...

I have a Remote package NestedPackage which modularizes its code into another local package LocalPacakge. This setup works fine when I use RemotePackage from its Package.swift but it fails to...

View Article


C++ Static Library Build Issues

Hi all, I'm trying to create an SPM module for a C++ static library. Here's the directory structure of my SPM module: . ├── Sources │ └── Essentia │ ├── include │ │ └── essentia │ │ ├── scheduler │ │...

View Article

Shipping .a library in Swift Package

Can't find any info about it in documentation or on public forums, I've created a simple project that looks like this: // swift-tools-version:5.3 import PackageDescription let package = Package( name:...

View Article

How to distribute macros as a binary xcframework?

I'm trying to make an xcframework from my static library (SPM btw) with macros. My script doesn't work properly My SPM declaration of macros: // swift-tools-version: 5.9 // The swift-tools-version...

View Article


Image may be NSFW.
Clik here to view.

Unknown type name 'uint32_t'

Not sure what's going on with this one. Do we have to do something new to see types from stdint when building c/c++ projects with Swift Package Manager in Swift 6? github.com/GEOSwift/GEOSwift Unable...

View Article


Invoke XcodeCommandPlugin from CLI

The title says it all: Is there any way to invoke an XcodeCommandPlugin from CLI? This implies that there is no Package.swift file. 1 post - 1 participant Read full topic

View Article

Using Swift in Obj-C in mixed Swift Package

Hi, I'm trying to modularise an existing project, and want to bring over some Obj-C classes verbatim from the main project (refactoring them and bringing them over to Swift is the end goal, but want...

View Article

[6.0.1] Package removed before it is used

Using 6.0.1-RELEASE on macOS, a package is removed before being used. Causing the error below. When trying the same command on Linux (docker swift:amazonlinux2) , it works swift package archive...

View Article

Xcodebuild failing issue on macOS CI

Issue The Swift Test macOS Platform (smoke test) will fail for xcodebuild command. error: unexpected service error: The Xcode build system has crashed. Build again to continue. Checking the log...

View Article


Image may be NSFW.
Clik here to view.

Warning: prohibited flag(s): -D_DARWIN_C_SOURCE

Hi there! Whenever I build a SwiftPM package which uses C module I get the following warning on every build: warning: prohibited flag(s): -D_DARWIN_C_SOURCE My question is if this flag is okay, and if...

View Article

How to debug a SwiftPM Command plugin that fails due to sandbox limitations,...

Hi I have a command plugin that basically works It runs successfully if I disable the sandbox swift package --disable-sandbox plugin --allow-writing-to-package-directory plugin-name However, running...

View Article


Best practices for long term dependency access

What is the best practice for ensuring that I have permanent access to a dependency that was used in a build? Assuming that a direct dependency is hosted in GitHub, if the creator of that package...

View Article

Drawbacks/problems with C/C++ interoperability & SwiftPM

While creating the Package.swift SPM wrapper around the LevelDB database library, I faced two issues: Issue with C interop LevelDB is a C++ library that has an API for importing in both C and C++...

View Article


Getting error on package resolve

Hello, As of today, I'm getting a wierd error running swift package resolve on windows. error: 'hermes-swift': target 'xxx' contains a value for disallowed property 'settings' I checked the package...

View Article

Use an Objective-C framework in a Swift package

Is it possible to import a module from an xcframework in SPM? I have the xcframework linked as a binary target but I cannot import it into the Swift target (no such module error). The xcframework has...

View Article

Fatal: cannot use bare repository

Hi there, that's my first post. There is an ongoing issue (at least I believe it to be ongoing) where some developers start to have issue fetching swift packages via SPM. There is a opened thread on...

View Article
Browsing all 188 articles
Browse latest View live