Closed bdrelling closed 3 years ago
SPM support is a no brainer and should have been done long ago IMHO.
EDIT: It seems you need support for binary dependencies. We’ll get those in Swift 5.3! I hope you’ll be SPM-compatible then 🙃
Thanks all for being understanding around the 5.3 dependency. @bdrelling thoughts on workarounds to help you use SDWebImage from SPM? In theory you could use our framework binary (which doesn't care where SDWebImage comes from as long as it's there) but in some ways that's probably more cumbersome than just using Cocoapods...
@Bucimis Yeah, I’m not sure what an appropriate workaround would be at this time. For some of our own frameworks, we tend to keep functionality like this protocol-based and provide a submodule/subspec with the implementation from a preferred provider, but allow a client to opt out of the submodule/subspec and inject their own.
For example, abstracting the SDWebImage functionality you use into protocols that you then make SDWebImage conform to in a submodule that makes it easy for consumers to pull in if they want a quick solution, but would allow us to inject SDWebImage, Kingfisher, AlamofireImage, or anything of the sort.
Might not be as easy as a workaround, but depending on how much functionality you use from the library, this could be a relatively quick implementation.
Any update on this?
Hi @BryanNorden, we're working on this internally but don't have a particular timeline to share now. When we have a beta version available to test, we'll ping this channel
Hey everyone, a few updates to share
Let us know your thoughts around the plan/timeline here (particularly on our goal of coupling Cocoapods/SPM+XCFrameworks together)!
@Bucimis great, but could you release SPM support separately from Cocoapods? I think those two are not related. Ones who will opt-in to SPM will not use cocoapods 🤷♂️
@borut-t appreciate the callout. We wanted to initially work "all things XCFramework" into a single release, but as you mention, SPM folks don't need the Cocoapods support and would prefer to get support faster rather than wait for us to finish Cocoapods.
We've updated our plan to reflect that reality and are now planning to release SPM first. In terms of SPM support, we're working through the last few QA issues and are day to day in terms of being able to release with a working best guess of early next week.
Thanks everyone for your continued patience and input! We've just released initial SPM support in 3.29.0 (https://github.com/Appboy/appboy-ios-sdk/blob/master/CHANGELOG.md#3290). Let us know how it goes!
Thank you @Bucimis for SPM support. I've successfully replaced cocoapods version with spm one 👍 Here are some thoughts:
Post-actions run script
for? It seems to be working without 🤔 import Appboy_iOS_SDK
with import AppboyUI
. That could also be part of the documentation update.Thank you @Bucimis for SPM support. I've successfully replaced cocoapods version with spm one 👍 Here are some thoughts:
- What do we need
Post-actions run script
for? It seems to be working without 🤔- Can you also update the documentation?
- Imports are changed now. You need to replace
import Appboy_iOS_SDK
withimport AppboyUI
. That could also be part of the documentation update.
Hi @borut-t , Thanks very much for the feedback!
Thanks 👍
Thanks 👍
@borut-t One more thing my colleague reminded me of, if you don't use the post action script, Apple will actually reject the IPA when submitting to the App Store.
Interesting. Thanks for the heads up.
Mirroring this issue in your other repository: https://github.com/Appboy/appboy-segment-ios/issues/29
Specifically because when we need to rely on specs in this repo that pull in
SDWebImage
, Braze is now forcing us to downgrade from usingSDWebImage
via SPM.I understand there is a dependency on Swift 5.3 which is just around the corner and we (and I'm sure any others) really need to see support for SPM as soon as possible.