react-native-webrtc: 'React/*' file not found on build

react-native: “0.61.5”, react-native-webrtc: “^1.75.2” OS: iOS 13 Test on XCode 11

Hey, I follow all the ios installation steps as described:https://github.com/react-native-webrtc/react-native-webrtc/blob/master/Documentation/iOSInstallation.md First I try with the Pod to skip steps 2-4, but then also try to implement steps 2-4 manually. When I try to run the project I get error image

part of my pod file(relvant part):

pod 'React', :path => '../node_modules/react-native/'
pod 'React-Core', :path => '../node_modules/react-native/'
pod 'react-native-webrtc', :path => '../node_modules/react-native-webrtc'

I try to reinstall the pods, also try on manage scheme build options to add ‘react’ as the first build and uncheck Parallelize Build but it does not help.

The build succeeded only if I remove the webrtc project from ‘libraries’ (add that as described in part 1 in the tutorial). Did I have to include the project in my ‘libraries’ folder? The pod install and react-native link do not add the project automatically?

Thanks!

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 15 (6 by maintainers)

Most upvoted comments

Bitccode is not mandatory yet. If you add a watchOS companion app target to your main app, bitcode is mandatory. Hence we provide a way to download a bitccode-enabled build (should you want one), since it’s too large (close to 1GB) to put in the repo.

@OriAmir did you get it working? I face another error during build

node_modules/react-native-webrtc/ios/WebRTC.framework/WebRTC' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target.

@saghul Tnx, so I just need to do these steps?

1.npm install react-native-webrtc --save
2.react-native link react-native-webrtc
3.Include in a Pod file in my react-native ios directory:
pod 'react-native-webrtc', :path => '../node_modules/react-native-webrtc'
4.pod install

did that right or I miss something ?

for idiots like me who like copy-paste things, 2. react-native link react-native-webrtc not react-native link react-native-webrt as mentioned in @OriAmir answer (typo at the end)

that should do, yeah