React-native-intercom: Build error "cannot read property unread change notification of undefined"

Created on 20 Feb 2018  路  7Comments  路  Source: tinycreative/react-native-intercom

Getting the following build error on iOS, I'm on the latest version of react native, this package and the intercom ios SDK.
screen shot 2018-02-20 at 4 29 09 pm

Most helpful comment

Hey! Got the same issue and solved it. You need to do the following:

  1. Follow the three steps at this link: https://github.com/intercom/intercom-ios

  2. Open Xcode -> Right click Libraries and select Add File to Project Name -> Select RNIntercom.xcodeproj located in node_modules/react-native-intercom/iOS

  3. Open General Settings -> Build Phases -> Link Binary with Libraries and add libRNIntercom.a

Hope this help!

All 7 comments

Anyone have any ideas about this?

Hey! Got the same issue and solved it. You need to do the following:

  1. Follow the three steps at this link: https://github.com/intercom/intercom-ios

  2. Open Xcode -> Right click Libraries and select Add File to Project Name -> Select RNIntercom.xcodeproj located in node_modules/react-native-intercom/iOS

  3. Open General Settings -> Build Phases -> Link Binary with Libraries and add libRNIntercom.a

Hope this help!

@Swappdevelopment I did this and now I'm getting No Known class method for selector 'logout' No known class method for selector presentHelpCenter

@Swappdevelopment I was able to fix No Known class method for selector but I'm still getting unread issue

@AlmogRnD Did you ever end up solving this?

Got it, I needed to add the libRNIntercom.a to the linked frameworks and Libraries section for all of my build targets and use the latest version of the iOS Intercom SDK (currently 5.0.2).

For other looking to solve this, right-click your Libraries folder in Xcode and then "Add files to ". Select RNIntercom.xcodeproj from your <project>/node_modules/react-native-intercom/iOS folder. Then you should be able to easily add the library libRNIntercom.a under Build Phases > Link Binary with Libraries.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

wadeyw picture wadeyw  路  5Comments

lucasharada picture lucasharada  路  9Comments

AlmogRnD picture AlmogRnD  路  7Comments

nazarTrynko picture nazarTrynko  路  6Comments

canpoyrazoglu picture canpoyrazoglu  路  3Comments