amitaymolko / react-native-rsa-native

A native implementation of RSA key generation and encryption/decryption.
MIT License
232 stars 112 forks source link

IOS Build fails "include of non-modular header" #154

Open nightrdr opened 1 year ago

nightrdr commented 1 year ago

Getting the following error while building the project for ios.

<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "Headers/react-native-rsa-native-umbrella.h"
        ^
/Users/anurag/Desktop/repos/sample/ios/Pods/Target Support Files/react-native-rsa-native/react-native-rsa-native-umbrella.h:13:9: note: in file included from /Users/anurag/Desktop/repos/sample/ios/Pods/Target Support Files/react-native-rsa-native/react-native-rsa-native-umbrella.h:13:
#import "RNRSA-Bridging-Header.h"
        ^
/Users/anurag/Desktop/repos/sample/node_modules/react-native-rsa-native/ios/RNRSA-Bridging-Header.h:4:9: error: include of non-modular header inside framework module 'react_native_rsa_native.RNRSA_Bridging_Header': '/Users/anurag/Desktop/repos/sample/node_modules/react-native/React/Base/RCTBridgeModule.h'
#import <React/RCTBridgeModule.h>
        ^
<unknown>:0: error: could not build Objective-C module 'react_native_rsa_native'

Using: XCode 14 Macbook Pro M1 React native 0.64.2 React native RSA native version: 2.0.5