Questions tagged [swiftpm]

Swift Package Manager, tool for swift code distribution

From the home page: The Swift Package Manager is a tool for managing the distribution of Swift code. It’s integrated with the Swift build system to automate the process of downloading, compiling, and linking dependencies.

35 questions
0
votes
0 answers

SwiftPM Package building target in docker

Im trying to setup an external library in a SwiftPM Package project. This package (Mockingbird) is only used from within my test target, and therefor my main application target does not depend on this. On my MacOS host machine, building and…
Mistermoon
  • 21
  • 2
0
votes
1 answer

Unit tests don't see the framework they're supposed to test although they're in same SwiftPM target

I'm migrating an Objective-C framework to build with Swift Package Manager, but when I build it using xcodebuild -scheme MyFramework -workspace ., SwiftPM complains: /Users/uli/Programming/apple/MyFramework/MyFrameworkTests/MyFrameworkTests.m:4:9:…
uliwitness
  • 8,532
  • 36
  • 58
0
votes
2 answers

Swift Using an app level global constant in a library package

This should be easy but its got me stuck. In my app, I have a global constant defined as public let apiKey = "hjbcsddsbsdjhksdbvbsdbvsdbvs" I want to use that apiKey in a library that I have added to my project as a SwiftPackage. I need it in the…
Ferdinand Rios
  • 972
  • 6
  • 18
0
votes
0 answers

SwiftPM unary operator

I have simple method in extension: postfix operator | extension Bool { static postfix func | (p: Self) -> T { p ? 1 : 0 } } But in Tests target is not possible to use this unary operator: let intTrue: Double =…
AlKozin
  • 904
  • 8
  • 25
0
votes
1 answer

SwiftPM Framework not found for C library

I am working on creating a Swift wrapper for an existing C library, using Swift Package Manager. I think i have structured everything properly, but I am getting an error when create and build an Xcode project. I have tried everything I could find,…
1 2
3