124 questions
Advice
1 vote
5 replies
79 views
How to wrap C-library into SwiftPackage to use in my project?
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-...
0 votes
0 answers
38 views
Automatically add string from swift package to apps string catalog
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 ...
1 vote
0 answers
31 views
Is there a way to provide Info.plist-based permissions when testing a Swift Package?
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 ...
1 vote
0 answers
34 views
Does Swift Packages have a similar feature to the "Private Module Map File" build setting?
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....
2 votes
0 answers
144 views
Which UTType initialiser should I use if I don't know if the UTType is exported or imported?
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" ...
2 votes
5 answers
4k 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
59 views
How to make a Swift package for a C library imported from Homebrew
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 ...
0 votes
0 answers
64 views
How can I enhance my SwiftUI “SwipeCardUI” package to replicate Tinder-like swipe gestures and animations?
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 ...
0 votes
1 answer
392 views
Error when running Previews in a Swift Package: XCPreviewAgent crashed because "Testing.framework" is missing
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 ...
0 votes
0 answers
143 views
Not able to add MSAL library by using Swift Package
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 ...
0 votes
1 answer
228 views
How do I fix this error of "not found in scope" when my classes are public with swift package manager?
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 ...
4 votes
2 answers
3k views
Where is package.resolved stored?
Problem I am using Swift Package in my project I can't find package.resolved in the following path: [appName].xcodeproj/project.xcworkspace/xcshareddata/ (even tried showing the hidden files) My ...
4 votes
2 answers
513 views
Cannot delete files from a Swift Package in Xcode
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 ...
0 votes
0 answers
133 views
How can I make all my Swift Package Manager package optional like Firebase offers
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 ...
2 votes
1 answer
234 views
How to do top-of-tree development with Swift Package Manager and XCode?
So I am working on two packages in tandem, where Package A depends on Package B. Package A -> Package B Each package is in a separate git repository, and I would like to avoid having to push ...