Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sodium/version.h not found #44

Open
dan714 opened this issue Nov 26, 2020 · 2 comments
Open

sodium/version.h not found #44

dan714 opened this issue Nov 26, 2020 · 2 comments

Comments

@dan714
Copy link

dan714 commented Nov 26, 2020

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
Copy link
Author

dan714 commented Nov 28, 2020

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
Copy link
Author

dan714 commented Dec 3, 2020

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant