Intercom iOS SDK 19.2.1 — Swift methods not recognized in SPM | Community
Skip to main content
Answered

Intercom iOS SDK 19.2.1 — Swift methods not recognized in SPM

  • November 12, 2025
  • 1 reply
  • 28 views

Hi Intercom Team,

After updating our app to Intercom iOS SDK 19.3.2, several developers on our team have encountered issues where Swift methods (e.g. loginUser(with:), logout(), etc.) are no longer properly inferred or recognized by the compiler.

Details

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

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

  • Issue:  Xcode only exposes the Objective-C versions of the APIs (e.g. loginUserWithUserAttributes:success:failure:).

  • Error Messages:

    • “Cannot infer type of function call”

    • “No exact matches in call to function 'loginUser'”

  • Troubleshooting Tried

  • Cleared DerivedData and SPM caches

  • Removed and re-added the Intercom package

Could you please confirm:

  • The officially supported Xcode versions for SDK 19.3.0?

  • Whether there’s a known issue or upcoming patch related to this Swift interface mismatch when using SPM?

Best answer by Sean M

Hi ​@sprajapti, 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.1).

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
  • Answer
  • November 17, 2025

Hi ​@sprajapti, 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.1).

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