https://pact.io logo
#pact-swift
Title
# pact-swift
m

Mira Kim

04/12/2022, 12:55 AM
👋 Hello, team. I’m doing some tech investigation to see how we can integrate Pact to our iOS app. I was looking at PactSwift and it doesn’t seem to support Cocoapod, only carthage and SPM. Is there any plan to add Cocoapod support in the future? I saw that there is pact-consumer-swift which supports cocoapods but I’m not sure what’s the long term support plan for that version. I’d appreciate some info to help us make the right decisions, thanks!
m

Marko (IttyBittyApps / pact-swift)

04/12/2022, 2:01 AM
There is no plan to share PactSwift through Cocoapods. pact-consumer-swift is slowly sunsetting.
🥲 1
Best suggestion I have if you don’t want to introduce another dependency manager is to clone
PactSwift
, generate
PactSwift.xcframework
, add it to your project and link it to the correct target.
m

Mira Kim

04/12/2022, 2:16 AM
I see, thanks for the info. I’m not a fan of cocoapods but it would be a significant effort to move away from that and I think it might be quite complex to use both SPM and cocoapods together. That could be an option I guess? 🤷‍♀️
What’s the rough estimated timeline for sunsetting the pact-consumer-swift?
m

Marko (IttyBittyApps / pact-swift)

04/12/2022, 2:19 AM
Adding SPM packages to your project(s) shouldn’t be a problem at all. pact-consumer-swift is probably going to stick around for a while as is. It’s just that provider frameworks (go, js, jvm…) are pretty much all moving to support Pact spec v3 and you’d be left behind without all the bells and whistles that v3 provides.
👍 1
3 Views