opentok-react-native: iOS archive/build fails: library not found for -lOpenTokReactNative

Happens on my project and a brand new project with only opentok-react-native installed.

ld: library not found for -lOpenTokReactNative
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Runs fine in the simulator but not on archive.

Currently fixed by going to Taget -> Build Phases and adding OpenTokReactNative under Target Dependencies and under Link Binary With Libraries removing libOpenTokReactNative.a and re-adding it.

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 41 (26 by maintainers)

Most upvoted comments

I have the same issue than @emin93. I found a workaround which consist in going to the OpenTokReactNative xcodeproj settings and set Enable Bitcode to NO in the Build settings.

Thanks for helping out @MaFranceschi! @snobear We just released 0.8.0 last Friday so might want to upgrade to that one ๐Ÿ˜„

@renanpupin Yes, the workaround is mentioned here:

Currently fixed by going to Taget -> Build Phases and adding OpenTokReactNative under Target Dependencies and under Link Binary With Libraries removing libOpenTokReactNative.a and re-adding it.

@msach22 Thanks for catching up and Happy New Year btw ๐Ÿ˜„

Unfortuntately I didnโ€™t get to resolve it and Iโ€™m also not working on that project anymore (I left the company, so I also donโ€™t have access to it).

Thanks @gabrielbull @msach22 I followed the steps that you told me before and it works for me. Iโ€™d to add the project as a target dependency at the Build phases and everything is on rails. ๐ŸŽ‰

@MaFranceschi Were you able to get it working after following the installation process? As @gabrielbull mentioned, this issue is tracking application archive failure. If you are still unable to get the native module on iOS, please create a new issue so we can track it separately ๐Ÿ˜„

@MaFranceschi Your issue is unrelated. A null native module means the library is not properly linked. Try react-native unlink and follow the installation instructions again.

I tried to run my react native application but I got the same problem to build it. I added the project as a dependecy just like you mentioned in the last comment but the problem remains. Please, can you tell me how to fix it? @msach22

nativeerror