Intercom iOS SDK 19.2.1 — Swift methods not recognized in SPM (loginUser and other APIs) | Community
Skip to main content
Answered

Intercom iOS SDK 19.2.1 — Swift methods not recognized in SPM (loginUser and other APIs)

  • October 21, 2025
  • 1 reply
  • 87 views

Hi Intercom team,

After updating our app to Intercom iOS SDK 19.2.1, several developers on our team started facing issues where Swift methods (like loginUser(with:), logout(), etc.) are no longer properly inferred or recognized by the compiler.


Details

  • Integration: Swift Package Manager (official repo intercom-ios-sp)

  • Project type: Pure Swift (no Objective-C bridging)

  • Issue: For some developers, Xcode shows only Objective-C versions of methods (e.g. loginUserWithUserAttributes:success:failure:).

  • Error: Cannot infer type of function call or No exact matches in call to function 'loginUser'

  • Behavior: Happens inconsistently across machines — some developers see the correct Swift interface and can compile fine, others cannot.

  • We already tried:

    • Clearing DerivedData & SPM caches

    • Re-adding the Intercom package

    • Confirmed same SDK version (19.2.1)

    • Still, the issue reappears randomly on some environments

 

Observation

When we “Jump to Definition,” for working setups it opens a Swift interface; for failing setups it shows Objective-C headers from the XCFramework.

This suggests the Swift module metadata might not be loading due to compiler version mismatch (Swift 5.9+ vs older/newer toolchains).

 

Any guidance would be appreciated — we want to confirm the officially supported Xcode versions or any upcoming patch addressing this SPM/Swift interface mismatch.

 

Thanks!

Best answer by Sean M

Hi ​@Venkat , Seán here from the Intercom engineering support team 🔧

Thanks for flagging this!
It looks like Xcode isn’t loading the Swift module from the Intercom SDK correctly and is falling back to the Objective-C headers. This usually happens when the local or CI Xcode version doesn’t match what the SDK was built with.

Please try the following:

  1. Make sure all developers and CI use the same Xcode version (15+ recommended) and select it under Settings → Locations → Command Line Tools.

  2. Clear DerivedData and Swift Package caches, then clean and rebuild the project.

  3. If the issue persists, try updating to the latest Intercom SDK (currently 19.3.0).

If this doesn’t resolve it, please reply here with your Xcode version and we’ll help dig deeper.

1 reply

Forum|alt.badge.img+4
  • Intercom Team
  • 31 replies
  • Answer
  • October 28, 2025

Hi ​@Venkat , Seán here from the Intercom engineering support team 🔧

Thanks for flagging this!
It looks like Xcode isn’t loading the Swift module from the Intercom SDK correctly and is falling back to the Objective-C headers. This usually happens when the local or CI Xcode version doesn’t match what the SDK was built with.

Please try the following:

  1. Make sure all developers and CI use the same Xcode version (15+ recommended) and select it under Settings → Locations → Command Line Tools.

  2. Clear DerivedData and Swift Package caches, then clean and rebuild the project.

  3. If the issue persists, try updating to the latest Intercom SDK (currently 19.3.0).

If this doesn’t resolve it, please reply here with your Xcode version and we’ll help dig deeper.