You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An error code can be a negative number. In such a case, it should be read as if it were positive. For example, if the SDK returns error code -2, you should refer to 2 in the error code table.
7
A method is called before the initialization of RtcEngine. Ensure that the RtcEngine instance is created and initialized before calling the method.
I was using .xcframeworks and what was missing was the Agoraffmpeg.xcframework.
Interestingly, when using .xcframework the app would run just fine but fail “silently” with just this misleading -7 error code, while with .framework the app would crash on launch with a helpful message:
dyld: Library not loaded: @rpath/Agoraffmpeg.framework/Agoraffmpeg
Referenced from: /private/var/containers/Bundle/Application/D3D2D968-ED95-4557-ABA5-F9D418B8131A/MyApp.app/Frameworks/AgoraRtcKit.framework/AgoraRtcKit
Reason: image not found
Not sure if there’s something Agora can do on their side about this, but would be nice to have some informative troubleshooting message when there’s a missing .xcframework.
Hey guys,
I was following this tutorial and could not start a local video preview / broadcast.
The problem spot seem to be in:
It returns code -7 which as docs suggest indicates an error.
I've also tried to build your example from here and it also does not start. Not even a request for my camera. See screenshot attached.
The text was updated successfully, but these errors were encountered: