react-native-virgil-crypto icon indicating copy to clipboard operation
react-native-virgil-crypto copied to clipboard

'VirgilCrypto/VirgilCrypto-Swift.h' file not found

Open desinl opened this issue 5 years ago • 7 comments
trafficstars

I have tried to install this library and got this error 'VirgilCrypto/VirgilCrypto-Swift.h' file not found

steps to reproduce:

npm install react-native-virgil-crypto cd ios/ && pod install && cd .. open Xcode. compile the code.

react-native: 0.59.4

desinl avatar Jun 30 '20 02:06 desinl

Try complete all instruction for RN 0.59.x: https://github.com/VirgilSecurity/react-native-virgil-crypto/tree/master/examples/Example59#notable-changes

xLEWKANx avatar Jun 30 '20 15:06 xLEWKANx

Thank you @xlwknx I followed every step and now this

In file included from /Users/xx/xx/react-chat/node_modules/react-native-virgil-crypto/ios/RCTConvert+KeyPairType.m:1: /Users/aa/aratzlabs/react-chat/node_modules/react-native-virgil-crypto/ios/RCTConvert+KeyPairType.h:1:9: fatal error: 'React/RCTConvert.h' file not found #import <React/RCTConvert.h> ^~~~~~~~~~~~~~~~~~~~

further thoughts?

desinl avatar Jul 01 '20 17:07 desinl

Sorry, @desinl, I can't reproduce your error. We have a working sample for React Native 0.59.x, so you can try to run it. There shouldn't be problems if you follow all instruction correctly. If our sample is working on your machine try to reproduce all actions in your project. If you have any difficulties with your project configuration, we have an individual support plan to help you with it, you can find more information here: https://dashboard.virgilsecurity.com/support

xLEWKANx avatar Jul 02 '20 08:07 xLEWKANx

I got it to build on RN 63 using use_frameworks! :linkage => :static (had to disable Flipper)

https://stackoverflow.com/a/52911280

computerjazz avatar Oct 19 '20 19:10 computerjazz

I got it to build on RN 63 using use_frameworks! :linkage => :static (had to disable Flipper)

https://stackoverflow.com/a/52911280

it throw the new error in yoda

zrg-team avatar Dec 18 '20 07:12 zrg-team

same issue on "react-native": "0.63.4" Flipper - removed use_frameworks - added

'VirgilCrypto/VirgilCrypto-Swift.h' file not found

and

The following build commands failed: CompileC /.../react-native-virgil-crypto/ios/RCTConvert+KeyPairType.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler

AlexandrBol avatar Aug 27 '21 16:08 AlexandrBol

Same issues.

nguyentuanit97 avatar Dec 13 '23 10:12 nguyentuanit97