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?