SwiftPM manual cache management?
i have a CI/CD system that consumes a lot of network bandwidth downloading git repositories from GitHub. this happens because the build system clears the SwiftPM cache (.swiftpm/cache/repositories)...
View ArticleWhy does breaking up SwiftPM targets list cause typechecking to fall off a...
i have a package manifest with a lot (>100) targets that was basically impossible to navigate. so i wanted to break it up into collapsible sections like this: var a:[Target] { [ // targets ... ] }...
View ArticleSwift dependencies in private Github repos
How do I add dependencies to a Swift Package, if those dependencies are in private repos? This works in the Package file, but exposes my personal access token if I commit it:...
View ArticleBuildToolPlugin 'Multiple commands produce ...' error when embedding wachOS...
I'm an author of a tool called xcstrings-tool that offers a BuildToolPlugin to generate Swift source code for accessing localized strings that are declared in an Xcode Strings Catalog. While BuildTool...
View ArticleDifficulty Accessing Resources in a Package's Bundle
Based on the docs, I tried to retrieve the URL of some resources in my package, but it seems to be impossible to do so ... Doesn't matter if I use Bundle.module or Bundle.main to retrieve the URL of a...
View ArticleDistributing several xcframeworks in a single Swift Package
I currently have a set of xcframeworks which have dependencies between each other, and one has external dependencies (to a public SwiftPM package). I've tried putting them all into a single Package,...
View ArticleIssue in importing header files from local package
Hi All, In my project the I have a local package just for example: ABCorePackage - ObjCSources - include - Maths.h (symlink) - ABCore - Maths.h - Maths.m - Package.Swift In the project where I am...
View ArticleSwift Package Organization
Hey folks. I've been working pretty steadily to decouple a lot of our codebase's services and I'm at the point in which our package directory has grown substantially. Ultimately I'll have to go...
View ArticlePackage modifier and Xcode package imports
(topic deleted by author) 1 post - 1 participant Read full topic
View ArticleThe Objective-C Burger
There is a Swift package issue when Swift depends on Obj-C and that Obj-C depends on Swift (in 3 targets/packages) There is more background here but it has been raised several times throughout the...
View ArticleIs it possible to let local SPM import other dependencies library from project
Hi there, I'm newbie here, and i had run into a small question of using local package recently, which is about import project's other library into my local package. Assuming that my project had...
View ArticleRFC: Allowing package-level dependency cycles in tools-version >= 6.0
We'd like to gather some feedback from the community on the changes to the dependency resolution behavior that would affect tools version 6.0 onward. We are considering lifting a long-standing...
View ArticleHow to exclude RealityKitContent from Swift package for iOS
I've created an app for visionOS that uses a custom package that includes RealityKitContent as well (as a sub-package). I now want to turn this app into a multi-platform app that also supports iOS....
View ArticlePakage.swift specify include folder and static libarary file (.a)
I built an app using swift. This app uses C++ library called "boost" for inter process communication. And of course, I am using objc to bridge between C++ and Swift. I've downloaded boost source in...
View ArticleSwift build flags with two --arch
I'm compiling the Xcodegen project and I saw in the Makefile the build flags have: --arch arm64 --arch x86_64 Source: XcodeGen/Makefile at master · yonaskolb/XcodeGen · GitHub Does this mean that the...
View ArticleBinary Target infer header search path
I wonder is it possible to infer header search path for c-family binary target? Now when adding local binary target it is possible to specify header search path like this: targets: [ .target( name:...
View ArticleWhy SwiftPM static library produces dynamic framework?
Hello everyone, I am currently migrating my large project's binary dependencies from dynamic to static binaries. To achieve this, I am creating an SPM (Swift Package Manager) package with all of my...
View ArticleWhat does this dependency resolution error mean?
i get this error when i try to resolve dependencies for a package with a direct and transitive dependency on SwiftSyntax: Dependencies could not be resolved because root depends on 'swift-dom'...
View ArticleRe-examining meaning of global options in cross-compilation contexts
Re-examining meaning of global options in cross-compilation contexts Since the host/target split is new for SwiftPM I think it's a good time to re-visit meaning and structure of affected command...
View ArticleNo such module error when module is loaded
I restarted Xcode too, no help trying to use GitHub - sindresorhus/KeyboardShortcuts: ⌨️ Add user-customizable global keyboard shortcuts (hotkeys) to your macOS app in minutes 9 posts - 2 participants...
View Article