Skip to main content
Filter by
Sorted by
Tagged with
Advice
1 vote
5 replies
79 views

I created test project - "TaoTester" and test package with C-library called "SwiftGit2". After few days of work in package almost all works fine.... EXCEPT: I cannot link C-...
Andrew's user avatar
  • 11.9k
0 votes
0 answers
38 views

I have a String Catalog file in the iOS app. If I have e.g. a Text("Hello App") in a view in the app, everything is automatically recognized and the key "Hello App" is added to the ...
HeGe's user avatar
  • 318
1 vote
0 answers
31 views

Is there a way to “give permission” to a package’s tests (or trigger the user permission dialog), so I can run tests in the package, without having to embed it in an app? I want to pull some code out ...
Grant Neufeld's user avatar
1 vote
0 answers
34 views

I have seen a few projects where there is a import Module and a import Module.Internal. If I open them up and build them I can see that the built .framework file in the Modules/ folder has both module....
CalebK's user avatar
  • 737
2 votes
0 answers
144 views

I have two macOS apps - App A reads and writes documents of the type identifier com.example.custom-document, whereas App B only produces com.example.custom-document documents as an "Export" ...
Sweeper's user avatar
  • 292k
1 vote
0 answers
59 views

The frustrating thing is there are so many related questions that almost help me, but not the exact combination I'm doing. This is my first time trying to make a Swift package wrapping a C library ...
CTMacUser's user avatar
  • 2,072
0 votes
0 answers
64 views

Background I’ve been developing an open-source SwiftUI package called SwipeCardUI that provides a basic card-swipe interface. It allows users to drag cards left or right and triggers an action once ...
Steven Yu's user avatar
0 votes
1 answer
392 views

I moved all of my snapshot dependencies and some utility code that simplified my testing to a separate Package, so I didn't need to import all of my snapshots dependencies in every Package I wanted to ...
Lucas van Dongen's user avatar
0 votes
0 answers
143 views

I am trying to add MSAL library https://github.com/AzureAD/microsoft-authentication-library-common-for-objc by using Swift Package but getting below error message. Not sure how to resolve it. I don’t ...
King's user avatar
  • 279
0 votes
1 answer
228 views

I'm writting my first package for an XCode project I'm doing. I made the class inside of my package public. I import the package into my xcode project and then I try to call the class and it can't be ...
Havic's user avatar
  • 113
0 votes
0 answers
133 views

I have a mono cocoapods repo, that host all our libraries. I'm in the process of adding support for Apple SPM. Everything is working on the package.swift configuration. But, I trying to have the same ...
SBouchard's user avatar
1 vote
1 answer
376 views

I have a package repository on aws azure (a swift package name lets say SimplePackage) I have created a repository in Code Artifacts section name (artifactsRepo) Now I have followed Configure Swift ...
Gypsa's user avatar
  • 11.3k
1 vote
0 answers
660 views

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 ...
shim's user avatar
  • 10.3k
4 votes
2 answers
509 views

I've created a new Swift Package to store all classes from an SDK I'm developing. The idea is to reuse that Swift Package between other projects. I've added the package to my current Xcode project by ...
Enric's user avatar
  • 350
0 votes
0 answers
33 views

I have a situation in my Swift iOS development project. 20 days ago, I created a branch named Modular_Approach from the Main-Branch. It's an enterprise application, so it took quite a while to convert ...
Aaban Tariq Murtaza's user avatar
2 votes
5 answers
4k views

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 '...
Chris Whipple's user avatar
1 vote
1 answer
120 views

I have a shared SceneView that I should show it directly on iPad and show in a seperate window on macOS if it's requested by the user. So, I decided to have SceneView and it's assets inside a Swift ...
Arda Oğul Üçpınar's user avatar
0 votes
1 answer
1k views

I have a Swift package in our Github repo, which has been updated, newly tagged, and pushed. In Github everything shows to be in the correct state (i.e. the updated code is correct). However, I cannot ...
HenryRootTwo's user avatar
  • 2,612
1 vote
0 answers
355 views

I have a Swift Macro that does the following: assertMacroExpansion( #""" struct MyStruct { var count: Int } let obj = MyStruct(count: 42) #destr(obj, \.count) "&...
funct7's user avatar
  • 3,601
0 votes
1 answer
454 views

I am building a package that contains a lot of classes, extensions and modules I have been building since I started developing for iOS in 2008. Because I also develop for macOS, watchOS, iPadOS, and ...
Duck's user avatar
  • 36.2k
3 votes
1 answer
726 views

Have added 2 Swift packages locally. (GraphQL code gens for Swift using Apollo iOS SDK v1.9.0). I'm using Xcode to manage the Swift packages. They've been added to the Project > Package ...
Alistair Cooper's user avatar
1 vote
1 answer
3k views

I have an Xcode project with a package dependency and want to add that package dependency locally for editing within my app project, but Xcode reports an error when trying to add the package locally. ...
KlausM's user avatar
  • 321
5 votes
1 answer
2k views

Can't make the new String Catalog work with my Swift Package (command line app) Here is my Package.swift // swift-tools-version:5.9 import PackageDescription let package = Package( name: "...
narek.sv's user avatar
  • 1,615
-1 votes
1 answer
682 views

Xcode version: 15.2 (15C500b) I've looked around in various screens in Xcode but have not seen any way to delete a package dependency. Some StackOverflow posts mention the screen option Swift Packages ...
litbe's user avatar
  • 549
2 votes
1 answer
1k views

I was writing my own standalone module and wanted to use cblas_dasum for efficient calculation of the sum of absolute values of a double array. Though a message pops up saying that I have to specify ...
Baffo rasta's user avatar
2 votes
1 answer
521 views

How can I add a package dependency that's already added to my main app to an app extension (for example a WidgetKit extension)? I searched for this answer for a while, so it might save people some ...
Jorn Rigter's user avatar
  • 1,315
0 votes
2 answers
63 views

I opened my project for the first time on my new MacBook and it won't run. I am getting a bunch of errors about my packages. Github is signed in, derived data deleted, restarted, build cleaned, and ...
Steve's user avatar
  • 1,171
2 votes
1 answer
95 views

Consider the following code to verify the compilation of some swift package (for the Swift Package Manager) xcodebuild \ -scheme name-Package \ -sdk iphonesimulator \ -destination 'platform=iOS ...
Richard Topchii's user avatar
0 votes
1 answer
136 views

If you check the screenshot of Apple sample project of Backyard Birds, it has three Swift Packages which is local and private to the project only. Also, there is no Sources folder like other normal ...
stone's user avatar
  • 115
0 votes
1 answer
719 views

I can create a new Swift Package in Xcode and able to add it in a workspace. This can be done using Xcode -> File -> New Package, add the name and select the workspace in "Add to" and ...
iadcialim24's user avatar
  • 4,067
4 votes
0 answers
350 views

I have a large Xcode project that has many SPM dependencies. I'm getting an error: multiple products named 'Swinject' in: 'github.com--swinject--swinject', 'github.com-swinject-swinject' This error ...
Richard Topchii's user avatar
3 votes
1 answer
1k views

Let's consider a common format of listing a dependency inside the package: .package(url: "ssh://[email protected]:firm/repo.git", from: "1.1.0"), And this format: .package(url: &...
Richard Topchii's user avatar
0 votes
1 answer
446 views

I have created swift package manager. In that i have to add third party package https://github.com/danielgindi/Charts. I have added that package as dependancy in Package.swift file. It has been added ...
iosdev1111's user avatar
  • 1,112
2 votes
0 answers
191 views

I'm having a problem defining the Package.swift file for my binary closed-source dynamic framework which depends on a number of non-binary open-source dynamic frameworks. My Package.swift file looks ...
ale-gen's user avatar
  • 69
1 vote
1 answer
465 views

I'm trying to distribute an XCFramework for some internal iOS apps using Swift Package Manager. This is a third-party library that constitutes: The one XCFramework A Resources.bundle file The SPM ...
CodeLana's user avatar
0 votes
0 answers
208 views

I have added the Swift Package OpenSSL to my project. When I run the app, it crashes with this error /Users/myself/Library/Developer/Xcode/DerivedData/MyApp-axyxgyhzyndlrqbybswlbgbcdcqd/Build/Products/...
Duck's user avatar
  • 36.2k
3 votes
1 answer
83 views

How can I solve a naming conflict between e.g. a local User object and the same object name in the StreamVideo SDK? Regular imports can lead to problems with existing project files that have the same ...
Stefan Blos's user avatar
1 vote
0 answers
436 views

I have implemented a package which has Private SPM dependencies, I am trying to authenticate the private Git repo with GitHub Deploy Key (SSH key), added dependency looks like below, dependencies:...
Vishwa's user avatar
  • 11
0 votes
2 answers
2k views

I have found solutions explaining how to exclude code coverage for SwiftUI projects, but I have failed to find anything for SwiftUI Packages. My Swift package includes views (and previews) for use in ...
Cyklist's user avatar
  • 89
0 votes
2 answers
833 views

I have created a swift package that compiled fine. I have imported the swift package in a project. No class inside the package is seen on the project. So I made them public. I added public init() {} ...
Duck's user avatar
  • 36.2k
1 vote
1 answer
384 views

When I import a package in Swift Playgrounds on my iPad, I receive the following error: This package interactions with libgit2, and it don’t have any release in the origin repository, so I find a ...
Heyya's user avatar
  • 43
0 votes
0 answers
369 views

I am building a new UI framework, let's call it a framework2, there is already existing UI framework framework1, unfortunately can not add or make more changes to that framework1(Provide by a vendor, ...
Vishwa's user avatar
  • 11
0 votes
1 answer
58 views

I have a database (PostgreSQL) with data, I've create an API (apinetopark) (with vapor) and an app netopark(macOS,swiftUI). My API successfully (localhost) reach the database and return my data. So I ...
Élodie Gagé's user avatar
3 votes
2 answers
454 views

My C library compiles and gets packaged into an xcframework without a problem, but my Swift project that uses this through a Swift Package then has some errors... Namely, I'm getting Token is not a ...
Crag's user avatar
  • 1,859
1 vote
0 answers
320 views

I am building a remote package for home screen Widget. One of the things I needed to do is to add .intentdefinition file to the package. Because it seems like its not really what Apple expects you to ...
lex_shvets's user avatar
0 votes
1 answer
865 views

At the moment I try to create a package with SwiftUI. I created a ProfileImageView. I get an Url as an optional String, which I convert to a non-optional String with if...let... In the body I use this ...
user avatar
5 votes
0 answers
1k views

I created a new swift macro package in my Xcode project. My Package.swift looks like: import CompilerPluginSupport import PackageDescription let package = Package( name: "TestMockable", ...
Sharmin Khan's user avatar
1 vote
0 answers
125 views

I want to make a package of google-mobile-ads to use on multiple devices.But the issue is I can not import or add the dependency of google-mobile-ads in my swift package. How I can do this?
Dipon's user avatar
  • 153
1 vote
1 answer
61 views

I have a custom class, located in a Swift Package, I am using as the super class to my AppDelegate When I run the following code, testVar will be empty when printed to the console. import UIKit import ...
Michael's user avatar
  • 9,944
3 votes
1 answer
1k views

I am trying to create a Swift Package from a custom xcframework that I'm building for a client. The framework has a dependency on a couple of 3rd party frameworks. I've read about how even though ...
Z S's user avatar
  • 7,577