Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build error "cannot read property unread change notification of undefined" #174

Closed
AlmogRnD opened this issue Feb 20, 2018 · 7 comments

Comments

@AlmogRnD
Copy link

commented Feb 20, 2018

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

@AlmogRnD

This comment has been minimized.

Copy link
Author

commented Feb 23, 2018

Anyone have any ideas about this?

@Swappdevelopment

This comment has been minimized.

Copy link

commented Feb 23, 2018

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!

@AlmogRnD

This comment has been minimized.

Copy link
Author

commented Feb 26, 2018

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

@AlmogRnD

This comment has been minimized.

Copy link
Author

commented Feb 26, 2018

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

@dylanslade

This comment has been minimized.

Copy link

commented May 11, 2018

@AlmogRnD Did you ever end up solving this?

@dylanslade

This comment has been minimized.

Copy link

commented May 11, 2018

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).

@a-koka

This comment has been minimized.

Copy link

commented Jul 21, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants
You can’t perform that action at this time.