Hey. It's something we're interested in doing, but there's a few things we need to work on to get the iOS SDK ready for that. We've ticked off a few of those things, but have some work left to do. I have no timeline yet (sorry!), but we're making progress 👍
Hey @user458! We just released v9.1.0 of the iOS SDK, which has Swift Package Manager support 😃
Hi @Mathew Cropper ,
While SwiftPM is supported, the binary bloat (due to committed xcframeworks) in the repo leads to extremely lengthy install times. Each binary exists as a copy, bloating the repo size, causing the SwiftPackage dependency resolving to slow. This has only worsened with additional releases adding more size.
Installing we include 48 dependencies: Intercom alone accounts for over 57% of our setup time 297s total.
Note: I'm on a GB network connection. Where this is causing failure to resolve for our Canadian developers with higher latency networks.
Reference:
Previously Branch SDK also suffered from this pain. They took the approach of providing a new repo to serve the Package.
We are also having this problem
I've also been trying to set up our Xcode project on a new computer and it's been hours trying to fetch the Intercom SPM and it seems to be stuck around 18%. Tried deleting the cache for the intercom package but it didn't help.
We also were unable to get our project to build on an M1 Macbook without using SPM.
The Intercom repo on GitHub is 1.6 GB. That's double the size of the Branch repo which was having similar problems before they fixed it by making a special repo for SPM.
4667 seconds is 1.3 hours
My internet is 300–400 Mbps right now as measured by fast.com and speedof.me
Same for me, ended up giving up... But it will be nice to eventually have all our Pods in SPM, it's only missing this one
Also we're sometimes getting CI failures due to timeouts with the CI sitting for 20+ minutes on fetching intercom
This has now been fixed. Swift Package Manager should take just a few seconds now.
Thanks
Brian
Sorry folks. The fix we applied caused some other issues so we had to revert it.
Working on a different solution now. Will post here with an update once we’ve resolved it.
Thanks
We now have a new repo for Intercom Swift Packages.
Please use https://github.com/intercom/intercom-ios-sp when integrating Intercom with SPM.
Reply
Join the Intercom Community 🎉
Already have an account? Login
Login to the community
No account yet? Create an account
Intercom Customers and Employees
Log in with SSOEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.