React-native: Undefined symbols for architecture arm64: "_OBJC_CLASS_$_RCTPushNotificationManager"

Created on 29 Jan 2016  路  5Comments  路  Source: facebook/react-native

mac osx 10.11.1
node.js 4.2.4
xcode 7.2
react 0.18-rc

+
target device: 6s plus, ios 9.2

I got this error when I tried to use PushNotificationIOS, following the tutorial document in official web page.

Undefined symbols for architecture arm64:
  "_OBJC_CLASS_$_RCTPushNotificationManager", referenced from:
      objc-class-ref in AppDelegate.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Locked

Most helpful comment

@sweetest I had the same issue because I forgot to properly manually link the RCTPushNotification project. Following these steps resolved it; https://facebook.github.io/react-native/docs/linking-libraries-ios.html#manual-linking

@poyannabati Maybe you have to do it again after upgrading?

All 5 comments

Hey sweetest, thanks for reporting this issue!

React Native, as you've probably heard, is getting really popular and truth is we're getting a bit overwhelmed by the activity surrounding it. There are just too many issues for us to manage properly.

  • If you don't know how to do something or something is not working as you expect but not sure it's a bug, please ask on StackOverflow with the tag react-native or for more real time interactions, ask on Discord in the #react-native channel.
  • If this is a feature request or a bug that you would like to be fixed, please report it on Product Pains. It has a ranking feature that lets us focus on the most important issues the community is experiencing.
  • We welcome clear issues and PRs that are ready for in-depth discussion. Please provide screenshots where appropriate and always mention the version of React Native you're using. Thank you for your contributions!

Getting the same error on v0.19, was working on v0.18.1

@sweetest I had the same issue because I forgot to properly manually link the RCTPushNotification project. Following these steps resolved it; https://facebook.github.io/react-native/docs/linking-libraries-ios.html#manual-linking

@poyannabati Maybe you have to do it again after upgrading?

@bartolkaruza You nailed it. That solved the issue for me after upgrade to 0.23.
@poyannabati, did that do it for you too?

  1. Select your project target
  2. Go to Build Phases
  3. Go to Link Binary With Libraries
  4. Press + to link
  5. Make sure all libraries under Workspace have been added

screen shot 2016-05-07 at 12 26 52 am

Was this page helpful?
0 / 5 - 0 ratings