I just updated to react-native v0.59.9, and the react-native-webrtc version I was running (1.67.1) stopped working. Tried to update to 1.69.1 now, but keep getting Undefined symbols for architecture x86_64 when building. I've followed the installation guide to the letter, with no success. I've also tried to completely remove the library before installing. Anyone else experiencing this?

Ld /Users/tommy/Library/Developer/Xcode/DerivedData/Komp-fpsubdvnalhzldcnudrevrozlxmh/Build/Products/Debug-iphonesimulator/KOMP\ Debug.app/KOMP\ Debug normal x86_64
cd /Users/tommy/Git/noisolation/FamilyFrame/ios
export IPHONEOS_DEPLOYMENT_TARGET=9.0
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -Xlinker -rpath -Xlinker /usr/lib/swift -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk -L/Users/tommy/Library/Developer/Xcode/DerivedData/Komp-fpsubdvnalhzldcnudrevrozlxmh/Build/Products/Debug-iphonesimulator -L../node_modules/react-native-webrtc/ios -L../node_modules/react-native-webrtc/ios/RCTWebRTC -F/Users/tommy/Library/Developer/Xcode/DerivedData/Komp-fpsubdvnalhzldcnudrevrozlxmh/Build/Products/Debug-iphonesimulator -F/Users/tommy/Git/noisolation/FamilyFrame/ios -F/Users/tommy/Git/noisolation/FamilyFrame/ios/Crashlytics -F../node_modules/react-native-webrtc/ios -F../node_modules/react-native-webrtc/ios/RCTWebRTC -filelist /Users/tommy/Library/Developer/Xcode/DerivedData/Komp-fpsubdvnalhzldcnudrevrozlxmh/Build/Intermediates.noindex/Komp.build/Debug-iphonesimulator/Komp.build/Objects-normal/x86_64/KOMP\ Debug.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -mios-simulator-version-min=9.0 -Xlinker -object_path_lto -Xlinker /Users/tommy/Library/Developer/Xcode/DerivedData/Komp-fpsubdvnalhzldcnudrevrozlxmh/Build/Intermediates.noindex/Komp.build/Debug-iphonesimulator/Komp.build/Objects-normal/x86_64/KOMP\ Debug_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator -Xlinker -add_ast_path -Xlinker /Users/tommy/Library/Developer/Xcode/DerivedData/Komp-fpsubdvnalhzldcnudrevrozlxmh/Build/Intermediates.noindex/Komp.build/Debug-iphonesimulator/Komp.build/Objects-normal/x86_64/KOMP_Debug.swiftmodule -ObjC -lc++ -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -Xlinker /Users/tommy/Library/Developer/Xcode/DerivedData/Komp-fpsubdvnalhzldcnudrevrozlxmh/Build/Intermediates.noindex/Komp.build/Debug-iphonesimulator/Komp.build/KOMP\ Debug.app-Simulated.xcent /Users/tommy/Library/Developer/Xcode/DerivedData/Komp-fpsubdvnalhzldcnudrevrozlxmh/Build/Products/Debug-iphonesimulator/libReact.a -framework JavaScriptCore -lsqlite3 -lc++ -lc -framework VideoToolbox -framework CoreVideo -framework CoreAudio -framework GLKit -framework CoreGraphics -framework AudioToolbox -framework AVFoundation /Users/tommy/Library/Developer/Xcode/DerivedData/Komp-fpsubdvnalhzldcnudrevrozlxmh/Build/Products/Debug-iphonesimulator/libRCTWebRTC.a /Users/tommy/Library/Developer/Xcode/DerivedData/Komp-fpsubdvnalhzldcnudrevrozlxmh/Build/Products/Debug-iphonesimulator/libRCTPushNotification.a -lz /Users/tommy/Library/Developer/Xcode/DerivedData/Komp-fpsubdvnalhzldcnudrevrozlxmh/Build/Products/Debug-iphonesimulator/libSMXCrashlytics.a -framework ZDCChat -framework Crashlytics -framework ZDCChatAPI /Users/tommy/Library/Developer/Xcode/DerivedData/Komp-fpsubdvnalhzldcnudrevrozlxmh/Build/Products/Debug-iphonesimulator/libRCTBlob.a /Users/tommy/Library/Developer/Xcode/DerivedData/Komp-fpsubdvnalhzldcnudrevrozlxmh/Build/Products/Debug-iphonesimulator/libRCTAnimation.a /Users/tommy/Library/Developer/Xcode/DerivedData/Komp-fpsubdvnalhzldcnudrevrozlxmh/Build/Products/Debug-iphonesimulator/libRCTActionSheet.a /Users/tommy/Library/Developer/Xcode/DerivedData/Komp-fpsubdvnalhzldcnudrevrozlxmh/Build/Products/Debug-iphonesimulator/libRCTGeolocation.a /Users/tommy/Library/Developer/Xcode/DerivedData/Komp-fpsubdvnalhzldcnudrevrozlxmh/Build/Products/Debug-iphonesimulator/libRCTImage.a /Users/tommy/Library/Developer/Xcode/DerivedData/Komp-fpsubdvnalhzldcnudrevrozlxmh/Build/Products/Debug-iphonesimulator/libRCTLinking.a /Users/tommy/Library/Developer/Xcode/DerivedData/Komp-fpsubdvnalhzldcnudrevrozlxmh/Build/Products/Debug-iphonesimulator/libRCTNetwork.a /Users/tommy/Library/Developer/Xcode/DerivedData/Komp-fpsubdvnalhzldcnudrevrozlxmh/Build/Products/Debug-iphonesimulator/libRCTSettings.a /Users/tommy/Library/Developer/Xcode/DerivedData/Komp-fpsubdvnalhzldcnudrevrozlxmh/Build/Products/Debug-iphonesimulator/libRCTText.a /Users/tommy/Library/Developer/Xcode/DerivedData/Komp-fpsubdvnalhzldcnudrevrozlxmh/Build/Products/Debug-iphonesimulator/libRCTVibration.a /Users/tommy/Library/Developer/Xcode/DerivedData/Komp-fpsubdvnalhzldcnudrevrozlxmh/Build/Products/Debug-iphonesimulator/libRCTWebSocket.a -lRNAudioRouter -lBleClient -lRNBlur -framework WebRTC -lRNCamera -lRCTContacts -lRNDeviceInfo -lFastImage -lRNFetchBlob -lRCTImageResizer -lKCKeepAwake -lRNKeychain -lBVLinearGradient -lRCTOrientation -lRNPhotosFramework -lRNSentry -framework Fabric -lRCTVideo -lReactNativeExif -lRNSpinkit -Xlinker -dependency_info -Xlinker /Users/tommy/Library/Developer/Xcode/DerivedData/Komp-fpsubdvnalhzldcnudrevrozlxmh/Build/Intermediates.noindex/Komp.build/Debug-iphonesimulator/Komp.build/Objects-normal/x86_64/KOMP\ Debug_dependency_info.dat -o /Users/tommy/Library/Developer/Xcode/DerivedData/Komp-fpsubdvnalhzldcnudrevrozlxmh/Build/Products/Debug-iphonesimulator/KOMP\ Debug.app/KOMP\ Debug
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_RTCDefaultVideoDecoderFactory", referenced from:
objc-class-ref in libRCTWebRTC.a(WebRTCModule.o)
"_OBJC_CLASS_$_RTCDefaultVideoEncoderFactory", referenced from:
objc-class-ref in libRCTWebRTC.a(WebRTCModule.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Try cleaning up the project, looks like you are not using the latest WebRTC framework.
I've tried product > clean, product > clean build folder..., and deleted derived data, still the same error.
I had a copy of an old version of the WebRTC.framework in my project root for some reason. Deleted that and added linked the framework again from node_modules. It works now 馃帀
thanks batman, fixed for me <3
Most helpful comment
I had a copy of an old version of the
WebRTC.frameworkin my project root for some reason. Deleted that and added linked the framework again fromnode_modules. It works now 馃帀