-
-
Notifications
You must be signed in to change notification settings - Fork 336
Description
YOU MUST read first!
Please use Community Forum for general technical discussions and questions.
- I have used Google with the error message or bug in association with the library and Cordova words to make sure the issue I'm reporting is only related to iOSRTC.
- I have provided steps to reproduce (e.g. using sample app code https://github.com/cordova-rtc/cordova-plugin-iosrtc-sample or updated
extra/renderer-and-libwebrtc-tests.js
file). - I have provided versions of third party library name, ios, Xcode and plugin version and adapter.js version if used.
Note: If the checkboxes above are not checked (which you do after the issue is posted), the issue will be closed, removing this checkbox will result in automatic closed issue.
Versions affected
- Cordova version (e.g 7.1.0): 10.0.0
- Cordova iOS version (e.g 5.1.0): 6.2.0
- Plugin version (e.g 6.0.12): 6.0.21
- iOS version (e.g 10.2): 14.5
- Xcode version (e.g 11.1 - 11A1027): 12.5.1
- WebRTC-adapter version (e.g. 7.4.0): latest
- WebRTC Framework version (e.g. JSSip 3.1.2):
Description
Build fail on Mac M1
Steps to reproduce
Create blank Ionic project
ionic cordova plugin add cordova-plugin-iosrtc
ionic cordova platform add ios
ionic cordova build ios (for emulators)
ionic cordova build ios --prod --release (for production)
Both build commands generate same error
Same steps works without adding iosrtc plugin
Expected results
Build successfull
Actual results
ld: warning: Could not find or use auto-linked framework 'WebRTC' Undefined symbols for architecture arm64: "_OBJC_CLASS_$_RTCCameraVideoCapturer", referenced from: objc-class-ref in PluginRTCVideoCaptureController.o "_OBJC_CLASS_$_RTCEAGLVideoView", referenced from: objc-class-ref in PluginMediaStreamRenderer.o "_OBJC_CLASS_$_RTCMediaStreamTrack", referenced from: objc-class-ref in PluginMediaStream.o "_OBJC_CLASS_$_RTCDataChannelConfiguration", referenced from: objc-class-ref in PluginRTCDataChannel.o "_OBJC_CLASS_$_RTCDataBuffer", referenced from: objc-class-ref in PluginRTCDataChannel.o "_OBJC_CLASS_$_RTCMediaConstraints", referenced from: objc-class-ref in PluginRTCPeerConnectionConstraints.o "_OBJC_CLASS_$_RTCMediaStream", referenced from: objc-class-ref in PluginRTCPeerConnection.o "_OBJC_CLASS_$_RTCIceServer", referenced from: objc-class-ref in PluginRTCPeerConnectionConfig.o "_OBJC_CLASS_$_RTCConfiguration", referenced from: objc-class-ref in PluginRTCPeerConnectionConfig.o "_OBJC_CLASS_$_RTCIceCandidate", referenced from: objc-class-ref in PluginRTCPeerConnection.o "_OBJC_CLASS_$_RTCSessionDescription", referenced from: objc-class-ref in PluginRTCPeerConnection.o "_kRTCVp8CodecName", referenced from: CondHouse_Gestão_de_Condomínios.iosrtcPlugin.(initPeerConnectionFactory in _AC323BD484FEC511553C8A2ECB08B1FB)() -> () in iosrtcPlugin.o "_OBJC_CLASS_$_RTCVideoCodecInfo", referenced from: objc-class-ref in iosrtcPlugin.o "_OBJC_CLASS_$_RTCDefaultVideoDecoderFactory", referenced from: objc-class-ref in iosrtcPlugin.o "_OBJC_CLASS_$_RTCDefaultVideoEncoderFactory", referenced from: objc-class-ref in iosrtcPlugin.o "_OBJC_CLASS_$_RTCPeerConnectionFactory", referenced from: objc-class-ref in iosrtcPlugin.o "_OBJC_CLASS_$_RTCVideoTrack", referenced from: objc-class-ref in iosrtcPlugin.o objc-class-ref in PluginMediaStream.o objc-class-ref in PluginMediaStreamRenderer.o "_OBJC_CLASS_$_RTCLegacyStatsReport", referenced from: objc-class-ref in PluginRTCPeerConnection.o "_OBJC_CLASS_$_RTCAudioTrack", referenced from: objc-class-ref in iosrtcPlugin.o objc-class-ref in PluginMediaStream.o objc-class-ref in PluginMediaStreamRenderer.o "_kRTCH264CodecName", referenced from: CondHouse_Gestão_de_Condomínios.iosrtcPlugin.(initPeerConnectionFactory in _AC323BD484FEC511553C8A2ECB08B1FB)() -> () in iosrtcPlugin.o "_kRTCVp9CodecName", referenced from: CondHouse_Gestão_de_Condomínios.iosrtcPlugin.(initPeerConnectionFactory in _AC323BD484FEC511553C8A2ECB08B1FB)() -> () in iosrtcPlugin.o "_OBJC_CLASS_$_RTCRtpSender", referenced from: objc-class-ref in PluginRTCPeerConnection.o objc-class-ref in PluginRTCDTMFSender.o "_RTCInitializeSSL", referenced from: CondHouse_Gestão_de_Condomínios.iosrtcPlugin.pluginInitialize() -> () in iosrtcPlugin.o ld: symbol(s) not found for architecture arm64