Closed muhasturk closed 4 years ago
Hello, I don't have much experience with it. Would you be interested in submitting a PR and updating the docs with an explanation how to install?
Thanks
Ok, let me develop, will send PR.
Just to be sure, does SPM guarantee a framework output with a module, so things like @import LNPopupController;
are handled correctly?
Also, the framework currently has an asset catalog. SPM doesn't currently support assets. I read that Swift 5.3 will finally add that in SPM, so maybe best to wait until then.
You are right, 5.3 will add support for Binary Dependencies, we can wait until released.
https://github.com/apple/swift-evolution/blob/master/proposals/0272-swiftpm-binary-dependencies.md
It’s mind boggling that it took so long to develop this. 🤦♂️
Binary dependencies and resources are now supported in SPM :)
Hmm, so it requires that all sources be in Sources/
? :(
I might implement this using soft links, I don't like losing history on the files just for SPM.
I've created the SPM branch with my attempt:
https://github.com/LeoNatan/LNPopupController/tree/SPM https://github.com/LeoNatan/LNPopupController/blob/SPM/Package.swift
Can't get the build system to find my public headers. I am using #import <LNPopupController/Header.h>
syntax for publicly exposed headers, but Xcode complains that it cannot find the header. I will not change the import syntax to #import "Header.h"
.
@muhasturk @fruitcoder If you'd like to assist here, I'd be grateful.
Got it working.
Oh wow @LeoNatan that's amazing 🥳
Cheers!
Thank you for supporting this :)
Quite simple to add Package.swift and point source files. Could you please add swift package manager support?