Quantcast
Channel: Active questions tagged react-native+ios - Stack Overflow
Viewing all articles
Browse latest Browse all 16552

Main app can't reference framework used in React Native Library

$
0
0

I need some advice about building react native library that using framework. I'm trying to build one using this library. My react native library contains these files:

Sample-Bridging-Header.hSample.mSample.swiftSample.xcodeproj/Utilities/Utility.swiftUtilities/Helper.swiftTest.framework

Inside my Utility.swift and Helper.swift, I import library Test and there is no issue there.

However, when I build the sample app which uses the library, it will not build and it gives the error no such module 'Test'.

So it looks like if the main application try to use the react native library, and if the library uses a framework, the main application can't reference the framework. I'm not sure if this is the right approach or not.

I built react native library before and it worked for me but I never have to reference any framework.

Appreciate any help! Thanks!


Viewing all articles
Browse latest Browse all 16552

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>