iOS build error using @intercom/intercom-react-native with Expo SDK 53 (React Native 0.79) | Community
Skip to main content
Answered

iOS build error using @intercom/intercom-react-native with Expo SDK 53 (React Native 0.79)

  • May 7, 2025
  • 5 replies
  • 419 views

Hello
After upgrading my app to Expo SDK 53 (React Native 0.79), the iOS build fails when using @intercom/intercom-react-native.

Error message:

❌  (ios/Tikin/AppDelegate.swift:1:2)

> 1 | #import <IntercomModule.h>
    |  ^ no macro named 'import'
  2 | import Expo
  3 | import React
  4 | import ReactAppDependencyProvider


› 1 error(s), and 3 warning(s)

This line appears in the generated AppDelegate.swift:

#import <IntercomModule.h>

But #import is not valid in Swift files — this causes the build to fail.

Environment:

  • Expo SDK: 53

  • React Native: 0.79

  • @intercom/intercom-react-native version: [insert version if known]

  • Build: EAS Build for iOS

It seems the native module is injecting Objective-C code (#import) into a Swift file. Is there an update or change needed for compatibility with SDK 53 and RN 0.79?

Best answer by Paul B12

Hey ​@Hisham Nimri can you open a conversation through the messenger and reference our chat here. We have an open issue (382798) for this that we can add you to.

5 replies

  • New Participant
  • 2 replies
  • May 14, 2025

getting the same error


  • New Participant
  • 1 reply
  • May 14, 2025

Adding to this, same problem.


  • New Participant
  • 1 reply
  • May 16, 2025

I'm having basically the same issue:

 

❌  (ios/myExpoProject/AppDelegate.swift:3:8)

  1 | import Expo
  2 | // @generated begin Intercom header - expo prebuild (DO NOT MODIFY) sync-3ff58f63b24eba463250844e4b0439beea83a5cc
> 3 | import intercom_react_native.IntercomModule
    |        ^ no such module 'intercom_react_native.IntercomModule'
  4 | // @generated end Intercom header
  5 | import React
  6 | import ReactAppDependencyProvider

 

If I modify it manually to import intercom_react_native then it runs fine, but that's auto generated by expo prebuild. 


Paul Byrne
Intercom Team
Forum|alt.badge.img+6
  • Intercom Team
  • 116 replies
  • Answer
  • May 17, 2025

Hey ​@Hisham Nimri can you open a conversation through the messenger and reference our chat here. We have an open issue (382798) for this that we can add you to.


Hey ​@Paul Byrne, can we have access to the issue?