Add Swift Package Manager support
marekpridal opened this issue Β· 15 comments
Swift PM is officially supported in Xcode 11 so it would be great if BulletinBoard supports it π
I think it would be nice too! Unfortunately I don't think it supports embedding resources yet, so that will be tricky to support it since we need some images and strings.
As mentions in WWDC19 session 410, SPM will soon support resources. So, when this proposal is adapted, we will be glad if you can add SPM support.
And, I think there is another option. UIImage(systemNamed: "xmark")
to generate a x mark image from iOS 13 new API with SFSymbols. This may be a good way to remove unnecessary resources in BLTN.@alexaubry
Looks like the proposal landed in Swift 5.3! https://github.com/apple/swift-evolution/blob/master/proposals/0271-package-manager-resources.md
I added a branch with SPM support: feature/spm-support
. Can one of you please try it and let me know if something breaks?
Hey @alexaubry,
Thank you for adding SPM on your project :)
With this new version (SPM installation), we no longer have access to the "appearance" variable on BLTNPageItem class.
Is this normal?
@robergro It should still be there, could you send the error from Xcode so I can have a look?
@robergro It should be fixed now, thanks for reporting! There were some issues with importing Objective-C from the package.
It seems Swift Package support for BulletinBoard is broken on Xcode 12:
target at '/Users/xxx/Library/Developer/Xcode/DerivedData/MyApp-ezhoowqbocgzhycfoojnfdfrulyf/SourcePackages/checkouts/BulletinBoard/Sources' contains mixed language source files; feature not supported
It seems Swift Package support for BulletinBoard is broken on Xcode 12:
target at '/Users/xxx/Library/Developer/Xcode/DerivedData/MyApp-ezhoowqbocgzhycfoojnfdfrulyf/SourcePackages/checkouts/BulletinBoard/Sources' contains mixed language source files; feature not supported
If you use the feature/spm-support
branch it will work, had the same problem yesterday. Seems like it hasn't been merged yet.
I could only add SPM
with develop
branch.
SPM is supporting assets now. There is no need to use other things like cocaopod or whatever
@trevor-sonic Please check out #189 for details
This is available in 5.0 now. Thanks for your patience!