SwiftUI application using Intercom SDK cause slow launch time | Community
Skip to main content
Answered

SwiftUI application using Intercom SDK cause slow launch time

  • November 8, 2024
  • 7 replies
  • 154 views

Forum|alt.badge.img

We’re experiencing a slow launch time in our SwiftUI app, about 35% of the slow launch time is caused by Intercom initialization. 

 

The stack trace indicates that multiple functions within the Intercom SDK, especially the initialization processes involving IMCCrashHandler, IMCConfig, HomeConfig, and HomeHeader, are contributing significantly to app launch latency. The UIKitCore and CoreImage components (like UIGraphicsImageRenderer and CIImage) invoked through ICAssets.backgroundImageViewWith also add processing overhead, which may impact the performance during launch.

Here is the full stack trace given by XCodes tools:

dyld start

1. App.main() - SwiftUI
2. AppDelegate.application(_:didFinishLaunchingWithOptions:) - SwiftUI
3. IMCCrashHandler swizzleDidFinishLaunchingWithOptions - Intercom
└ IMCCrashHandler sharedConfig - Intercom
4. IntercomSDK_SentrySDK startWithConfigureOptions - Intercom
5. IMCCrashHandler configureTags - Intercom
6. IMCConfig sharedConfig - Intercom
7. IMCConfig configFromDisk - Intercom
8. IMCPersistenceProxy unarchiveObjectWithFile - Intercom
└ NSKeyedUnarchiver unarchivedObjectOfClass:fromData:error: - Foundation
9. ConfigModules.init(coder:) - Intercom
10. HomeConfig.init(coder:) - Intercom
11. HomeHeader.init(coder:) - Intercom
12. HomeHeaderBackground.init(coder:) - Intercom
13. ICAssets.backgroundImageViewWith(L:) - Intercom
14. UIGraphicsImageRenderer imageWithActions - UIKitCore
15. CIImage imageByApplyingGaussianBlurWithSigma - CoreImage

We are using version 18.2.0 of the library.

Best answer by bernice

Hi ​@Jérémie, thanks for reaching out 👋 Given the nature of this query and that we’ll likely need some further details here, I’m going to pass this over to the support team to take further action on this issue for you. We’ll be in touch over the Messenger and with updates here 💬

7 replies

bernice
Expert User ✨
Forum|alt.badge.img+2
  • Expert User ✨
  • Answer
  • November 25, 2024

Hi ​@Jérémie, thanks for reaching out 👋 Given the nature of this query and that we’ll likely need some further details here, I’m going to pass this over to the support team to take further action on this issue for you. We’ll be in touch over the Messenger and with updates here 💬


Forum|alt.badge.img
  • Author
  • Connector
  • December 2, 2024

Thank you, let me know if you need more details...


Forum|alt.badge.img
  • Author
  • Connector
  • December 2, 2024

Here is the full stack trace  ​@bernice 


bernice
Expert User ✨
Forum|alt.badge.img+2
  • Expert User ✨
  • December 3, 2024

Thank you ​@Jérémie! This has been passed over to the team now, I’ll relay any solutions here 🙂


  • New Participant
  • December 3, 2024

ดำเนินการเรียบร้อยแล้ว หากมีแนวทางแก้ไขอย่างไ


  • New Participant
  • December 3, 2024

ดำเนินการเรียบร้อยแล้ว หากมีแนวทางแก้ไขอย่างไ

 


  • New Participant
  • March 4, 2025

We’re seeing the same thing in our app where Intercom is primarily the source of slow launch time