How to create React Native npm package that requires iOS cocoapod dependency

I am trying to create a react native npm native module using https://github.com/brodybits/create-react-native-module. The module requires a third party pod as a dependency. I have included the reference to the pod dependency in the modules podspec as a s.dependency. When installing the npm package module into my host app, it will not install it unless the pod dependency is installed in the host app as expected. However when I try to build the App I receive this error: linker command failed with exit code 1 (use -v to see invocation). Is this the correct way to reference a third party pod in my npm native module? Currently using xcode15, RN 72.8.

Thank you

I expect the app to build successfully using the referenced and installed pod present already in the app.

Leave a Comment