Questions tagged [swift-package-manager]
Swift Package Manager is a build tool and dependency manager for projects written in Swift. It is made by Apple and is open source.
swift-package-manager
1,288
questions
0
votes
0
answers
11
views
Can I Exclude Targets from a specific package in Swift?
I want to avoid the message multiple targets named 'foo' in: 'Mypackage', 'externalPackage1', 'externalPackage2', is there any change to select just one target? like use the package excluding an ...
0
votes
0
answers
14
views
Is there any way to specify a minimum version in a Swift Package just for one platform without overriding the compatibility with other platforms?
I am working on a Swift Package and I want to add a NLLanguageRecognizer instance, which is only available in macOS 10.14+. At this point the other default minimums for Swift Packages are fine; Xcode ...
-1
votes
0
answers
17
views
Swift Package "No Module Found error for Custom configuration"
I am using 3 different build flavors in the app Debug/Release/Production. When trying to integrate 3rd party library using Swift package getting an error "No Module found" only when running ...
-1
votes
0
answers
24
views
How to Create Swift Package Manager with XCframework?
I tried to research on the internet and also watched Apple wwdc link
https://developer.apple.com/videos/play/wwdc2020/10147
I checked Apple links but couldn't find exact tutorial about it.
Until now i ...
-1
votes
1
answer
41
views
Swift package building in Xcode but not command line
I have a Swift package like:
// swift-tools-version: 5.10
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = ...
0
votes
0
answers
33
views
Swift Package Manager - Warning while trying to access assets
It's the first time I'm creating an SPM Package and I have an error I could not resolve... This is my Package Struct:
And this is my Package.swift:
let package = Package(
name: "MyCustomPackage&...
0
votes
1
answer
175
views
Can not load dependency from Swift Package
I made a package that depends on GoogleMobileAds. I used to add my package as dependency on my apps and it used to load GoogleMobileAds. Something changed now and I observe this behaviour:
Swift ...
0
votes
1
answer
29
views
Swift Package Manager on Linux: dependency not recognised?
I am trying to use Swift for the 1st time on Linux and intend to create a small executable with SwiftImGui.
Here is my Package.swift:
// swift-tools-version: 5.10
// The swift-tools-version declares ...
1
vote
2
answers
78
views
Installing multiple SPM packages using the command line
I am looking for a way to add multiple SPM packages to an Xcode project (similar to how cocoapods works using it's podfile and calling pod install)
I know I can manually go to File->Add Package ...
1
vote
1
answer
37
views
Can a Swift Package Manager library have Cocoapods dependencies of its own?
I have a project which I am using as a SPM in my main project, but it has Alamofire and other dependencies of its own (using cocoapods).
Now when I am using it in main project, it says that "No ...
0
votes
0
answers
39
views
How to use swift macros in a development pod
I want to use my own swift macro in a pod for my main project. When I use the macro in my development pod I get the error 'External macro implementation type XXX could not be found for macro XXX'.
The ...
0
votes
1
answer
166
views
Why private repo SPM from Azure devops can't be fetched by xcode since a few days?
Since yesterday, I'm trying to fetch our private SPM repo hosted on Azure via Xcode but without success. It seems something has changed on their side?
(My SSH configuration seems good, and past weeks ...
-2
votes
1
answer
52
views
Fatal error: No ObservableObject of type Type found
I'm refactoring some code, and happens that i had a bunch of unrelated viewModel instances, and now i'm trying to do this right. but, during the process i'm having the error "Thread 1: Fatal ...
1
vote
1
answer
149
views
Xcode "Missing package product 'GoogleUtilities_UserDefaults'" after updating to latest package version using SPM
A few days ago I updated the packages in my swift project to newer versions. I am using the Firebase SDK as well as a few others. Immediately after updating, I got a "Missing package product '...
1
vote
0
answers
51
views
Why spm static library produces dynamic framework?
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 third-party ...