react-native-agora
react-native-agora copied to clipboard
Ios Last Version enableFaceDetection nil
Hi, after upgrading the version to the 3.7.0 whenever opening face cam it crashes on ios. "react": "17.0.1", "react-native": "0.64.1", "react-native-agora": "3.7.0",
await _engine.joinChannel(token, props.channel, null, 0); await _engine.enableFaceDetection(true);
2022-05-29 18:48:49.748592+0300 chatApp[xxxx:xxxxxx] Fatal error: Unexpectedly found nil while unwrapping an Optional value: file react_native_agora/RtcEngine.swift, line 1178
Line 1178 => @objc func enableFaceDetection(_ params: NSDictionary, _ callback: Callback) { callback.code(engine?.enableFaceDetection(params["enabled"] as! Bool)) }
@objc func enableFaceDetection(_ params: NSDictionary, _ callback: Callback) { callback.code(engine?.enableFaceDetection(true)) } Patches error but when we quit calling other end stays open I don't know it is connected to this it is there. Also I found that in ios version or enable changed to enabled but in react native it still is enable therefore it can be an version match error. It not detecting faces with this fix*. Could you fix that asap. Thank you very much.
@LichKing-2234 Any Idea about this issue ?
It works for me, any other infomation can help?
is it working for compile? just throw error on runtime?
It is giving the error at compile stage
could pls check your podfile.lock file to get the version of AgoraRtcEngine_iOS
Sure Agora and rtcEngine 3.7.0
could pls share the screenshot of podfile.lock?
btw, which swift version you used? and is our example working?
Sorry for late answer I was of the pc. There you go;
swift-driver version: 1.45.2 Apple Swift version 5.6.1 (swiftlang-5.6.0.323.66 clang-1316.0.20.12)
Target: x86_64-apple-macosx12.0
I will test it on RN 0.64.1, could you pls try our example?
Sure