swift-package-manager Questions

3

Solved

I am using the Swift Package Manager, with Swift 5.7.1. I would like to compile code with a regex literal. For example, main.swift could be as follows: let message = "Hello, world" print(...
Jitterbug asked 26/2, 2023 at 17:7

6

Solved

I'm trying to add support for SPM in one of our projects that has storyboards. Currently we grab it UIStoryboard(name: String, bundle: String?) but this doesn't seem to work with SPM, as there isn'...
Assailant asked 18/9, 2019 at 20:13

3

I am creating an SPM using the binary framework. I upload a zip file on the server and that link is used in SPM. let package = Package( name: "MyDemoPackage", platforms: [ .iOS(.v13) ], ...
Wellthoughtof asked 1/3, 2022 at 12:1

7

Solved

I would like to ship my library using Apple's Swift Package Manager. However my lib includes a .bundle file with several strings translated in different languages. Using cocoapods, I can include it...
Gooch asked 2/10, 2016 at 8:3

3

This error always happens whenever I add a new Package via Swift Package Manager in Xcode: Cannot fetch library I've already configured my GitHub Auth Token setting in Xcode and registered my Gi...
Malvoisie asked 12/12, 2021 at 9:9

2

I have added Realm and RealmSwift libraries in my iOS project. My app was fine till 2 days back. Suddenly it started giving following error. Error:Swift package target 'Realm' is linked as a static...
Consumption asked 20/5 at 16:8

2

Solved

Every time I load a new package, Xcode redownloads all dependencies from Github, instead of reusing some that I've already loaded for other projects. For instance I would expect that when I referen...
Elliotelliott asked 11/10, 2020 at 23:39

2

Sometimes, about 2 times out of 10, when I run my application through Xcode, I get this error: Internal inconsistency error (didStartTask): targetID (174) not found in _activeTargets. Internal inco...
Altostratus asked 14/4, 2023 at 11:49

9

Some of my project's dependencies are hosted on a private repository. It works most of the time, but sometimes when I change the current branch with git, I get this error : ❌ git@my_private_repo.gi...
Orabelle asked 15/6, 2022 at 12:51

3

Solved

When adding the usercentrics package in swift package manager i get the following error: invalid archive returned from 'https://bitbucket.org/usercentricscode/usercentrics-spm-sdk/downloads/Usercen...
Ingra asked 26/6, 2023 at 10:52

10

Solved

Some times Xcode can not determine the module parameter in the Bundle. Type 'Bundle' has no member 'module' My investigations show that SPM generates an extension on the module (some times) for t...
Offprint asked 3/8, 2020 at 21:46

2

I'm integrating the WireGuardKit, according to its README file, I need to create an external build system target to build wireguard-go-bridge library. In the external build system target's info tab...
Indisputable asked 3/3, 2022 at 7:41

7

After I create a new swift package with dependencies I call swift package generate-xcodeproj. If my dependencies have a new version I call swift package update. The new version of my dependency get...
Particolored asked 28/9, 2016 at 14:29

3

Sometimes after executing git checkout branch or git reset another-branch (while Xcode is open) I find out that the Package.resolved file gets mysteriously deleted. I can easily restore it from git...
Harvin asked 29/3 at 16:58

5

I have an issue on SwiftUI preview in a view located in a Swift Package when my code imports a control or value from an other swift package. import Foundation import SwiftUI import Common struct A...
Halvah asked 26/10, 2020 at 15:26

2

Using Xcode 12 beta and swift-tools-version 5.3, you can link to a framework, like this: .binaryTarget( name: "Stripe", url: "https://github.com/stripe/stripe-ios/releases/downloa...
Maroon asked 6/7, 2020 at 17:53

8

I can't find any SO questions regarding this, but I've run into this problem twice. Basically when I'm trying to add a new package via SPM, I sometimes get the following error: The repository coul...
Groggy asked 12/11, 2019 at 10:11

16

Solved

I have a build error saying that all my SPM packages are missing. I decided to remove and re-add each package to the project, but each attempt at adding a package gives me the following error: Pac...
Aggie asked 20/4, 2021 at 20:20

8

Solved

In my app I use several of SPM, I inserted them to my project. Yesterday I updated my Xcode to the last version (13.2.1), but I'm having lot of issues with SPM. Usually when I switch a branch or ch...
Disallow asked 4/1, 2022 at 15:20

16

Solved

I'm running Xcode 11 Beta 4. I'm using CocoaPods, and wanted to use one of my dependencies with Swift Package Manager as a static library instead of as a framework. On a fresh project created with ...
Journey asked 23/7, 2019 at 13:54

3

Solved

I am using Swift Package Manager that doesn't having a xcodeproject file associated with it and I get an error when building through he terminal. When I call the swift build command I get an error ...
Randolph asked 16/6, 2020 at 20:16

3

I opened a project in Xcode that relies on RxSwift which is included as a Swift package through the builtin Swift package manager. It worked fine a couple of week ago when I created the project. No...
Radiometeorograph asked 21/4, 2022 at 20:8

12

Solved

I have a project in Xcode 11 that I added Swift Package Manager dependencies to. I now realized that I no longer need one of the package dependencies I previously added to my project. As you can s...
Slicer asked 22/6, 2019 at 18:34

9

Solved

I've local Swift Packages added to a workspace. They reside in the project subfolders and connected to different git repositories as git submodules. Everything had been working perfectly (the proje...
Serve asked 22/9, 2021 at 9:42

13

Ran into this build error in Xcode 14.3 that prevents me from building my app. Build service could not create build operation: unknown error while handling message: MsgHandlingError(message: &quot...
Cailean asked 10/4, 2023 at 20:59

© 2022 - 2024 — McMap. All rights reserved.