Since the upgrade to 9.*.* of version for React Native Intercom (https://github.com/intercom/intercom-react-native), we can no longer build and compile our Expo React Native app for iOS.
Somehow the Intercom upgrade introduces a failure where C++ files are not correctly mapped during compiling. This is only when combined with other packages (in our case UserCentrics for RN).
It is important to highlight that although other third party apps are involved, Intercom’s upgrade breaks the building process. Compiling fails with:
13 |
14 | #ifndef __cplusplus
> 15 | #error This file must be compiled as Obj-C++. If you are importing it, you must change your file extension to .mm.
| ^ This file must be compiled as Obj-C++. If you are importing it, you must change your file extension to .mm.
16 | #endif
17 |
18 | // Avoid multiple includes of IntercomReactNativeSpec symbols
and
'optional' file not found
'tuple' file not found
'utility' file not found
I’ve added a minimal reproducible example in the following Repo: https://github.com/damiaanh/intercomExample . This repo contains a clean expo project with above two packages.
Note that this behaviour is for Expo apps that do not have the new RN Architecture enabled. Intercom should support this.
Hoping to find out more and to create a fix for this issue. Please reach out and engage with this question when you (I) also have this issue or (II) know more.