React-native release build error on iOS: ld: library not found for -lReact

0

I'm doing a build with in Xcode with the Release schema and it gives me the following error:

  

ld: warning: directory not found for option   '-L / Users / username / Library / Developer / Xcode / DerivedData / ProjectName-qwfopvasfnhysedskapbaefsdwer / Build / Products / Release-iphonesimulator / React'       ld: library not found for -lReact       clang: error: linker command failed with exit code 1 (use -v to see invocation)

If I try to add libReact.a in the Link Binary With Libraries section in Build Phases I can not find the library in my workspace.

Thanks in advance

    
asked by Antonio Cabezas 31.07.2018 в 13:45
source

1 answer

0

Did you check to have all the dependencies installed?

That is, run npm install or yarn in the main directory of your project.

    
answered by 15.08.2018 в 17:55