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

Have errors with build. #58

Open
l1m0nguy opened this issue Jul 3, 2020 · 10 comments
Open

Have errors with build. #58

l1m0nguy opened this issue Jul 3, 2020 · 10 comments

Comments

@l1m0nguy
Copy link

l1m0nguy commented Jul 3, 2020

Good morning!

Build troubles with macOS.
Installed like this:

react-native init simplepr;
cd simplepr;
npm i --save react-native-crypto;
npm i --save react-native-randombytes;
# react-native link react-native-randombytes --- create error 
# "React Native CLI uses autolinking for native-depencies"
npm i --save-dev rn-nodeify@latest;
./node_modules/.bin/rn-nodeify --hack --install;

After this

cd ios;
pod install;
cd ..;

Adding in index.js:

import './shim.js';

and adding in App.js:

import crypto from 'crypto';
console.log(crypto.createHash('sha256').update('hell').digest('hex'));

Run react-native run-ios and have linker error:


Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65.

...

The following commands failed:
Ld *path to app*

@l1m0nguy
Copy link
Author

l1m0nguy commented Jul 3, 2020

idk why it's happen, because under linux (when building android apk) i have no problem with it

@l1m0nguy
Copy link
Author

l1m0nguy commented Jul 3, 2020

I forgot about version:

react-native-cli: 2.0.1,
react-native: 0.62.2,
react-native-crypto: 6.13.4,
react-native-randombytes: 6.13.4

@datle1888
Copy link

same here, what's wrong?

@l1m0nguy
Copy link
Author

l1m0nguy commented Jul 6, 2020

is smth wrong with me or with library?

@l1m0nguy
Copy link
Author

l1m0nguy commented Jul 6, 2020

@mvayngrib

@l1m0nguy
Copy link
Author

l1m0nguy commented Jul 8, 2020

ping

@l1m0nguy
Copy link
Author

l1m0nguy commented Jul 8, 2020

@datle1888 could you write your problem? Maybe this could help

@stonebinox
Copy link

@l1m0nguy did you resolve this? If so, what did you do? Been with this problem for a while now!

@emdeutsch
Copy link

I have the same problem... has anyone figured it out?

@gkasireddy202
Copy link

How to use below code?

./node_modules/.bin/rn-nodeify --hack --install

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

5 participants