Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

can't find ios framework headers in react native module library

I've included an iOS framework in the xcode project for the React Native module library I'm creating. Everything compiles fine when I build the ios project in the RN library itself, but once I npm install the library into my main RN project, running react-native link <project-name>, and then build in xcode, the included framework headers are not found.

I checked the normal build settings (Header, Framework, and Library search paths) and they all have $(inherited) listed.

Repo for the react native library that is WIP https://github.com/bsy/react-native-pollfish

like image 446
Ben Yee Avatar asked Dec 16 '16 18:12

Ben Yee


People also ask

Where can I Find my iOS project in React Native?

You can find your iOS project here within a React Native app: We recommend using Xcode to write your native code. Xcode is built for iOS development, and using it will help you to quickly resolve smaller errors like code syntax.

What is React Native turbomodules?

The React Native team is currently working on a re-architecture of the Native Module system. This new system is called TurboModules, and it will help facilitate more efficient type-safe communication between JavaScript and native, without relying on the React Native bridge.

How do you use arguments in React Native?

Argument Types When a native module method is invoked in JavaScript, React Native converts the arguments from JS objects to their Objective-C/Swift object analogues. So for example, if your Objective-C Native Module method accepts a NSNumber, in JS you need to call the method with a number. React Native will handle the conversion for you.

How do I access my React Native changes from JavaScript?

In your command line, where the react native application is located, run the following : As you work through these guides and iterate on your native module, you will need to do a native rebuild of your application to access your most recent changes from JavaScript.


1 Answers

For 3rd party framework set the framework search path in the library project-

$(SRCROOT)/../../../ios/Pods/3rd_party_framework_folder_name

like image 182
PS_dev Avatar answered Oct 03 '22 20:10

PS_dev