react-native-sodium icon indicating copy to clipboard operation
react-native-sodium copied to clipboard

sodium/version.h not found

Open dan714 opened this issue 4 years ago • 2 comments

Hello,

I am trying to integrate react-native-sodium into our company's application. However, I am running into an issue in the file "sodium.h".

After I run npm install and follow pod install steps, I end up with: "sodium/version.h not found", however, I can see that the file exists under the sodium/ folder. Any thoughts on why this might occur?

Additional details: react-native-sodium: 0.3.9 minimum iOS: 11.0 CocoaPods: 1.10.0 Xcode: 12.2

Any help would be greatly appreciated, and let me know if any other info is required.

dan714 avatar Nov 26 '20 05:11 dan714

I have found a work around, by manually replacing #include "sodium/version.h" with #include "version.h" in sodium.h.

Is there a configuration I might be missing? Or do we need to update the import paths on this file?

dan714 avatar Nov 28 '20 00:11 dan714

I've figured out that there is a configuration specifically for this in Podspec:

https://guides.cocoapods.org/syntax/podspec.html#header_mappings_dir

I've opened a new PR for this. @lyubo mind taking a look?

dan714 avatar Dec 03 '20 04:12 dan714