Unity-Technologies / Unity-Technologies/com.unity.webrtc
[BUG] WebRTC with Unity as a Library / Cordova + iosRTC
@karasusan is already working on this.
Since Nov 11, 2021.
- Dominant language
- Assembly
- Stars
- 852
- Forks
- 238
- PR merge metrics
- No merged PRs in 30d
Description
Setup:
Unity as a library on iOS device. The existing code is compiled by Cordova.
A plugin is used in Cordova https://github.com/cordova-rtc/cordova-plugin-iosrtc
On Unity side Unity-Webrtc is used.
All components build correctly as stand-alone and also as UaaL if WebRTC is not included in Unity. The following error message is thrown:
2021-11-11 17:59:48.086883+0100 XXX[11121:1943090] Error loading /var/containers/Bundle/Application/F8920C8F-FA77-4A40-B72C-D69636DEB42F/XXX.app/Frameworks/UnityFramework.framework/UnityFramework: dlopen(/var/containers/Bundle/Application/F8920C8F-FA77-4A40-B72C-D69636DEB42F/XXX.app/Frameworks/UnityFramework.framework/UnityFramework, 0x0109): Library not loaded: @rpath/webrtc.framework/webrtc
Referenced from: /private/var/containers/Bundle/Application/F8920C8F-FA77-4A40-B72C-D69636DEB42F/XXX.app/Frameworks/UnityFramework.framework/UnityFramework
Reason: tried: '/private/var/containers/Bundle/Application/F8920C8F-FA77-4A40-B72C-D69636DEB42F/XXX.app/Frameworks/webrtc.framework/webrtc' (no such file), '/private/var/containers/Bundle/Application/F8920C8F-FA77-4A40-B72C-D69636DEB42F/XXX.app/Frameworks/webrtc.framework/webrtc' (no such file), '/usr/lib/swift/webrtc.framework/webrtc' (no such file), '/private/var/containers/Bundle/Application/F8920C8F-FA77-4A40-B72C-D69636DEB42F/XXX.app/Frameworks/webrtc.framework/webrtc' (no such file), '/System/Library/Frameworks/webrtc.framework/webrtc' (no such file)
2021-11-11 17:59:48.087928+0100 XXX[11121:1943090] Error loading /var/containers/Bundle/Application/F8920C8F-FA77-4A40-B72C-D69636DEB42F/XXX.app/Frameworks/UnityFramework.framework/UnityFramework: dlopen(/var/containers/Bundle/Application/F8920C8F-FA77-4A40-B72C-D69636DEB42F/XXX.app/Frameworks/UnityFramework.framework/UnityFramework, 0x0109): Library not loaded: @rpath/webrtc.framework/webrtc
Referenced from: /private/var/containers/Bundle/Application/F8920C8F-FA77-4A40-B72C-D69636DEB42F/XXX.app/Frameworks/UnityFramework.framework/UnityFramework
For the report production, a Corodva project with iosRTC + Unity as a Library with Unity WebRTC had to be set up.
Does the application have a name conflict with the iosRTC library?
Should I integrate the library differently?
Environment
- OS: macOS
- Unity Version 2021.1.x
- Package version 2.4.0-exp.4
Many many Thanks
Patrick
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.