-
Notifications
You must be signed in to change notification settings - Fork 39
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
Native module cannot be null. #42
Comments
Hello! It seems that you have not added react-native-voximplant to your project's Podfile.
Best regards, |
Hi @YuliaGrigorieva! I have that exact line in my podfile and I can successfully build the project for iOS: So something else is wrong, do I need to enable something more in xcode? e.g. notifications etc for the SDK to be able to run? I am using React native version 0.56.0. The SDK works for me on Android. Thanks! |
Hello! I was able to reproduce your issue on a project created from scratch with RN 0.56 only if react-native-voximplant is not included to the Podfile. Generally this error means that native modules of react-native-voximplant are not compiled/linked correctly. Could you please check that you have build logs for react-native-voximplant framework like this? Do you have a possibility to provide me a sample project on which I could reproduce the issue? Best regards, |
@YuliaGrigorieva Thanks for the response! I've created a sample project which gives me the same result: https://github.com/ricsam/testVI Observe that I have not removed anything from the "Libraries" folder in the xcode project. If I remove the *.xcodeproj from "Libraries" the build fails. |
Hello! It seems to be the root cause of the issue. You should remove all *.xcodeproj from Libraries section because otherwise React is compiled and linked twice (as a framework and as a static library). You can see that RCT classes are located in 2 different locations in your screenshots from the Xcode output. I have forked your repository and made a commit with the fix. Please take a look: https://github.com/YuliaGrigorieva/testVI To summarise my changes:
Please let me know if the issue is resolved on your side. Best regards, |
Absolutely amazing, thanks a million! Your forked version worked perfectly! 🎉 |
@YuliaGrigorieva I have a same problem. I tried these things but i'm getting this error. My Repo : https://github.com/ozanmanav/voxTest2 Is there any idea for this ? |
On iOS when running:
I've followed the steps in README.md
The text was updated successfully, but these errors were encountered: