Skip to content

Have errors with build. #58

@l1m0nguy

Description

@l1m0nguy

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*

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions