Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
369 views

I have my SwiftUI app where I am only using import GooglePlaces. To use Google Places I had to install the package from: https://github.com/YAtechnologies/GoogleMaps-SP The problem is that when I am ...
dhaval123's user avatar
4 votes
1 answer
1k views

I have created a new Swift package and trying to use the RxSwift dependency within it. I followed these instructions to add the dependency but my package is unable to build after this with the ...
Mando's user avatar
  • 11.8k
1 vote
2 answers
406 views

I am using swift package in several projects. In one of them, this package stopped compiling with error "Cannot find type 'any UITableView related type ' in scope". I can't fix it by any ...
Alexey's user avatar
  • 123
0 votes
0 answers
2k views

I have swift package like this: package ├── SigningSDK ├── Package.swift ├── README.md ├── Sources │ ├── SigningSDK │ └── file1.swift └── Tests └── ...
joisberg's user avatar
  • 187
1 vote
0 answers
75 views

I am developing a swift package with which I need to use aws lambda as well as cognito services. Inside the package when I include dependencies as dependencies: [ // Dependencies declare ...
Neo's user avatar
  • 936
1 vote
0 answers
31 views

I have a main app that will access multiple (self-created) Swift Packages. For a better user and tester experience I'd like to have a page that displays all Swift Package names and their respective ...
Nicolai Schneider's user avatar
1 vote
0 answers
102 views

I have a class hierarchy like this: MySwiftSubViewController -> ViewController -> UIViewController. Here is the code: #import <UIKit/UIKit.h> @class SwiftClassFromPackage; @interface ...
iljer's user avatar
  • 564
0 votes
0 answers
54 views

I made a test code for inverted bool binding as following, including almost binding ways I can think of(except @Environment...). struct TestView: View { @State private var isOn: Bool = false @...
foolbear's user avatar
  • 984
1 vote
0 answers
404 views

I have a white-label project which has multiple app targets. All the target use the common code and their specific assets. All the common code is divided into Core Modules and Feature Modules. All of ...
tarun_sharma's user avatar
6 votes
1 answer
1k views

I'm trying to use a color set from a xcassets folder that is inside a Swift Package (src). It doesn't seem to be working. I tested this out by writing a simple view that attempts to make use of the ...
Kelvin Lau's user avatar
  • 6,841
3 votes
1 answer
1k views

I'm in a bit of a pickle. I created custom files templates for my Xcode projects. In a normal project environment my custom templates appear when I access the New file creation popover as you can see ...
Martin's user avatar
  • 1,193
1 vote
0 answers
256 views

I am wrapping the XCFramework of Google Places SDK for iOS as a Swift Package. Then I am trying to use this Swift Package in an iOS application. Here is where I downloaded Google Places XCFramework: ...
Dogahe's user avatar
  • 1,425
2 votes
0 answers
292 views

I recently added a Swift Package (IQKeyboardManager) from GitHub on to my xcworkspace Project. The Package.swift file is in the root folder of the repository. However, I got an error: /Package.swift ...
Ujwal Kalpavraksh's user avatar
0 votes
0 answers
414 views

I have moved some of my code from my main application to a Swift Package. But I noticed a slow down. I have set the Build Configuration to Release in the scheme configuration, but it does not seem to ...
Brice's user avatar
  • 75
4 votes
1 answer
1k views

When I use resources: [.copy("Resources")] for my Swift package, the bundle can't be built: "Command CodeSign failed with a nonzero exit code" (undle format unrecognized, invalid, ...
chkpnt's user avatar
  • 417
0 votes
0 answers
832 views

Hello I am trying to replace all Pod dependencies in my project with Swift packages. Currently I have one blocker. There is one framework which only supports x86_64 architecture (its kotlin ...
Hawkeye's user avatar
  • 21
4 votes
2 answers
3k views

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 ...
user1046037's user avatar
  • 17.9k
1 vote
1 answer
208 views

I created a SwiftUI view and ObservableObject in a package like this one: struct CustomView: View { @StateObject var viewModel: CustomViewModel var body: some View { Text(...
Janevin's user avatar
  • 83
0 votes
1 answer
442 views

I'm trying to add the swift-async-algorithms package to my project using SPM. I add it the package: I'm tried to import the package to my project: Any of you knows how can I can fix this error? I ...
user2924482's user avatar
  • 9,240
6 votes
2 answers
819 views

I converted an iOS framework project to a Swift Package. Everything went smoothly and I can find and add the package to other projects. But Xcode won't display the README for the project. It only ...
Eric Crichlow's user avatar
2 votes
0 answers
233 views

I am creating a custom swift package that depends on firebase. I followed different tutorial but I struggling with an error. This is my package description: import PackageDescription let package = ...
carlo97's user avatar
  • 359
0 votes
1 answer
232 views

I have a SwiftUI app that calls a View with passed in Views, methods, and variables. This view, let's call it DisplayView is general enough that I'm able to call it in different ways and have it ...
Kyra's user avatar
  • 5,477
2 votes
1 answer
1k views

I have a set of Swift Packages that I'm writing (ex: CUIExpandableButton), that I'd like to roll up into another Swift Package called CrystalUI. The overall goal is to write a set of packages that get ...
robhasacamera's user avatar
5 votes
0 answers
869 views

Swift has an interesting keyword, which can be declared in the ModuleA: @_exported import Foundation Then, when in some other module (e.g. ModuleB) I import the ModuleA: import ModuleA let ...
Richard Topchii's user avatar
0 votes
1 answer
529 views

I'm trying to create a swift package from existing xcframework. I can add it to my test app but I get that error: "Cannot open file handle for file at path: Path(str: "... .framework")&...
Avi Gelkop's user avatar
10 votes
4 answers
9k views

I get "no such module" errors when trying to build after doing a "Clean Build Folder". Repeatedly trying to build eventually results in no errors. IMPORTANT: The modules that can ...
TJez's user avatar
  • 2,029
-1 votes
1 answer
184 views

I'm making a swift package using existing code to separate a class as a module from the main project. My original code makes properties private(set), which is intended to make it only readable (not ...
Yiming Designer's user avatar
2 votes
1 answer
3k views

I'm trying to wrap an XCFramework as a swift package. Following the documentation, I have created a package with the following directory structure: /MyXCFPackage /Package.swift /MyXCFPackage....
sak's user avatar
  • 3,407
5 votes
1 answer
2k views

I'm building a Swift package which should work for MacOS and Linux. I have tried specifying the platform like so: let package = Package( name: "MyPackage", platforms: [ ....
sak's user avatar
  • 3,407
2 votes
1 answer
220 views

I'm working on a Swift package that should depend on GLFW only on desktop (MacOS or Linux), but not for iOS, since GLFW does not build for iOS. How would I go about this? I have a system library ...
sak's user avatar
  • 3,407
3 votes
0 answers
2k views

I am working a project where I am modularising with Swift Packages. I have a package I called Theme where my Color and Image assets resides, under the Sources directory. In another package called Home,...
Darotudeen's user avatar
  • 2,588
2 votes
1 answer
5k views

Someone in my company created a Swift package SDK and now I was tasked to publish it for the customer in a binary way so that the end customers that will use the SDK will not be able to see the source ...
noku09876's user avatar
1 vote
1 answer
2k views

I have a Swift package, and try to add Objective-c files. My package now: Root - Package.swift + Sources + ObjC + DataDeflate - DataDeflate.h - module.modulemap - NSData+...
General Failure's user avatar
4 votes
0 answers
297 views

I have a Swift Package (GeoSwift) that I’m including in a project I’m trying to set up with Xcode Cloud for a build / archive / release for Test Flight workflow. When running that build I keep getting ...
narner's user avatar
  • 3,221
2 votes
1 answer
233 views

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 ...
sak's user avatar
  • 3,407
0 votes
1 answer
444 views

i am trying to add linux support to my swift package library for system info, but i don't know how i can access the sysctlbyname function on linux within a Swift package. For all of it's detections ...
Pietro Caruso's user avatar
2 votes
0 answers
1k views

Im new with Swift and its tools. I use this extension. I added a package to dependencies but when I try to import my package import SwiftyJSON terminal gives me an error: error: no such module '...
KeoFoxy's user avatar
  • 51
3 votes
1 answer
3k views

I'm new with Swift and all this tools. I've tried to look for guides but they didn't help me. I wanna try to work with packages in VS code.So I decided to add a SwiftyJSON package. This is my Package....
KeoFoxy's user avatar
  • 51
3 votes
1 answer
933 views

I have started a small collection of helper code in a Swift Package for my own needs. If i include this package in my main project using Swift Package Manger and try to build it using Xcode Cloud, i ...
Maciej Swic's user avatar
  • 11.4k
1 vote
0 answers
111 views

I‘m trying to import the Swift package https://github.com/demharusnam/SwiftUIDrag into the playgrounds app on the iPad, but it won‘t work. I suspect it might have something to do with missing version ...
Ratramnus's user avatar
9 votes
1 answer
762 views

In a regular Xcode project app, when I create a new file, it will offer me a template (eg. SwiftUI/Swift/Storyboard) to choose from. I choose a template, click on next, and the prompt will allow me to ...
Richard Witherspoon's user avatar
15 votes
3 answers
6k views

On my M1 mac, using Xcode 13.3, I created a package and displayed the code coverage bar (Editor menu –> Code Coverage). After running tests, there is no indication of code coverage at all in the ...
Aaron Bratcher's user avatar
3 votes
3 answers
4k views

I created a new Package with Xcode and incorporated a dependency, however when I try to use it, I get an error. How do I use the dependency in the Package sources? In a normal project, I can easily ...
Aaron Bratcher's user avatar
7 votes
0 answers
3k views

I have a sample Swift Package Manager package (let's call it TestPackage), that is structured in the following way: TestPackage/ Sources/ TestPackage/ Services/ Services.h ...
B. Morfe's user avatar
7 votes
0 answers
2k views

I'm migrating a library built and tested as an Xcode Project to Swift Package Manager. The project contains 3 targets: the library itself, the same library but with different dependency and the test (...
Richard Topchii's user avatar
4 votes
0 answers
2k views

I have uploaded my binary artifacts in maven-central repository. I am fetching these libraries through SPM. I am getting the below error most of the times. xcodebuild: error: Could not resolve package ...
mahbaleshwar hegde's user avatar
5 votes
3 answers
3k views

I recently forked a Swift Package library from GitHub in order to implement a functionality that I've been missing. However, when I try to add my version of the package in a Xcode project (by adding ...
ajpallares's user avatar
1 vote
0 answers
243 views

I added GoogleSignIn with SPM however, I get 2 warnings (See attached). I know that the issue has to do with the values set on the Package.swift file of the dependency. I have been browsing around to ...
JLico's user avatar
  • 25
7 votes
2 answers
6k views

I'm currently developing a Swift Package in which I would like to use other Swift Packages. To do so I added the packages I want to use to the dependencies in my Package.swift dependencies: [ // ...
Tim Langner's user avatar
8 votes
1 answer
3k views

In Package.swift, what is the difference between adding a target the array of targets within a library versus adding a target to the array of dependencies. In this first example, 'Helpers' is added as ...
Nobadi's user avatar
  • 251