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

SwiftUI application using Intercom SDK cause slow launch time

  • Nov 8, 2024 3:15 PM UTC
  • 7 replies
  • 366 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 💬

View original

7 replies

bernice
Expert User ✨
Forum|alt.badge.img+2
  • Expert User ✨
  • Answer
  • Nov 25, 2024 3:04 PM UTC

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
  • Dec 2, 2024 4:06 PM UTC

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


Forum|alt.badge.img
  • Author
  • Connector
  • Dec 2, 2024 4:08 PM UTC

Here is the full stack trace  ​@bernice 


bernice
Expert User ✨
Forum|alt.badge.img+2
  • Expert User ✨
  • Dec 3, 2024 7:35 AM UTC

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


  • New Participant
  • Dec 3, 2024 8:35 PM UTC

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


  • New Participant
  • Dec 3, 2024 8:35 PM UTC

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

 


  • New Participant
  • Mar 4, 2025 6:03 PM UTC

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