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

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: dinsert 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?

getting the same error


Adding to this, same problem.


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. 


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?