'Undefined symbols _RCTRegisterModule

I'm using xcode 13, React-native version 0.64.2

Its working fine in Android but iOS I getting error

It builds with the following error:

Undefined symbols for architecture x86_64: "_RCTRegisterModule", referenced from: +[RNMixpanel load] in RNMixpanel.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

Undefined symbol: _RCTRegisterModule



Solution 1:[1]

Not sure if it's the same thing but for me my solution was an issue with the packages, they had s.dependancy as React when it should be React-Core. See here: https://github.com/facebook/react-native/issues/29633#issuecomment-694187116

You can manually change them to see if it works for you and then use the patcher as suggested to fix the libraries.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Aequitas