-
Notifications
You must be signed in to change notification settings - Fork 46
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
This file seems to randomly disappear causing build issues. #35
Comments
Update@lyubo I have confirmed that the libsodium folder which gets unzipped from the precompiled gz, just magically disappears? any idea on why is that happening? It disappeared even after I manually extracted precompiled zip in there. |
I'm experiencing the same. I'm not sure why it happens. |
Hopefully @lyubo will figure it out. |
Give me some context pls. (package version android SDK version, etc.). Have you tried example application. New version is alinged with the most recent react-native and is working just fine. |
I'm not sure it's exactly what's going on, but it seems to fail after installing another package (I'm using the yarn package manager). To reproduce:
It fails. Not sure if this is what's going on, but maybe a clue. |
I am also using latest RN and SDK API 29. I don't have specific scenario either and I also use yarn. Every time it happens, I manually have to go to the folder and I extract the precompiled tar. |
Can you try with [email protected] (i.e the version with gpg)? |
Alright. I will try that version and if the issue persists, I will update here. However, I don't know when it will happen again since I am not sure how to reproduce it. I guess if it doesn't happen for quite a while, then we can assume that it works. Meanwhile, I will keep an eye for pin pointing the issue. |
@lyubo, it's unrelated to that gpg change because it's about installing this package a dep, not building libsodium from source. Do you also use yarn? Could you maybe try reproducing like I mentioned above? |
@tasn , last project I've used this library in used npm as package manager, so I can't tell if it is yarn related. |
Having the same issue. No |
False alarm. Turns out Sublime was just not showing me |
Just had it again on a new project... :| |
This is indeed a confirmed issue. Unfortunately it seems that it will require quite some time to dig through and pin point the problem. However, I think the time it will take will be considerably less if @lyubo could do it since he knows this library the best. |
I've just updated the example application to newest RN and v0.3.9 of this package. I used yarn to build and run it on both iOS and Android emulators (I had used npm for example application until now). Unfortunately I could not reproduce this issue. |
I tried with latest react-native-sodium and with latest RN. I created the app a few days ago. |
Latest react-native-sodium (0.3.9) had been published about an hour ago. |
Ah, I missed that. I just upgraded, will keep an eye out for issues. |
I had to revert back to 0.3.8 because it wouldn't build with Xcode 11. I can't remember the exact error now, but it was something about bitcode incompatibility. |
Post the exact error message, please! Xcode version used to compile library for iOS is 11.7. |
I don't have access to the build system so can't give you an exact error or version, but I think my Xcode is 11.4. There's nothing to investigate, the Xcode you built with is newer than mine (or maybe just incompatible, doesn't matter if newer or not) which was causing this. As for the other error: Exact steps: I already mentioned it above how I got to reproduce it, though I'm not sure whether it still happens consistently with those steps. |
My attempt to reproduce:
OS: MacOS 10.15.6 |
I haven't gotten it on RN for iOS yet, so make sure you build for Android. Also, as I said, it doesn't happen immediately. Try maybe removing the react-navigation from package.json by hand and then running |
@lyubo: another idea on how to do it: |
@tasn: I still haven't try your suggestion, but running yarn (not yarn install) would possibly skip 'postinstall' hook, which is used to unzip precompiled.tgz file |
@lyubo, Actually, now that I re-read my description, it looks like yarn isn't calling the postinstall when the package is reinstalled but the version hasn't changed. I looked around and there seem to be a maybe related bug: yarnpkg/yarn#5476 |
The problem with hooking with build scripts is that if someone wants to build the library from source, and later these compiled files get deleted, users may end up with building with pre-compiled files, which apparently was not their intent. |
Did you close it by mistake? As the issue is still here. |
yes, sorry |
Running into this issue. |
I might be missing something here and it might be an obvious reason, but so far it seems to be randomly loosing this file for Android at this location
The file is required inside react-native-sodium\android\CMakeLists.txt at the following copy operation
Please guide.
The text was updated successfully, but these errors were encountered: