I am trying to include ios sdk framework in my react-native module library. I turned always embed swift standard library
to Yes
in build setting. Everything compiles fine.
Then I include the node module in an app using npm i react-native-my-framework
, open sampleapp.xcworkspace
and build in XCode, I get an error MyFramework/MyFramework-Swift.h
not found. I tried following permutation combinations:
- Put MyFramework to
Frameworks, Library and Embedded Contents
. and tried some other combination of build settings. - Set the
framework search path
in the library project -$(PROJECT_DIR)/../node_modules/react-native-my-framework/ios/
- I manually included
libMyFramework.a
toLibraries
group.
But I am still facing the same issue. What am I missing here?
Also, MyFramework
is not on Cocoa pods