Answered

Are you planning to add support for Swift Package Manager for your iOS SDK?

  • 10 November 2020
  • 10 replies
  • 37 views

https://swift.org/package-manager//p>

icon

Best answer by Anonymous 10 November 2020, 12:09

View original

10 replies

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 😃

Screen Shot 2021-07-20 at 11.44.09 AMHi @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.

https://github.com/BranchMetrics/ios-branch-deep-linking-attribution/issues/1053#issuecomment-859986475/p>

 

 

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

 

image.png 

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

Userlevel 2
Badge +2

@Jérémie @Simon B @User458 

This has now been fixed. Swift Package Manager should take just a few seconds now.

Thanks

Brian

Userlevel 2
Badge +2

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

Userlevel 2
Badge +2

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