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

What is the best practice to include third party ios sdk framework in react-native module library?

$
0
0

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:

  1. Put MyFramework to Frameworks, Library and Embedded Contents. and tried some other combination of build settings.
  2. Set the framework search path in the library project - $(PROJECT_DIR)/../node_modules/react-native-my-framework/ios/
  3. I manually included libMyFramework.a to Libraries group.

But I am still facing the same issue. What am I missing here? Also, MyFramework is not on Cocoa pods


Viewing all articles
Browse latest Browse all 16552

Trending Articles



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