Software Archive
Read-only legacy content
17061 Discussions

cordova-plugin-iosrtc build failure

SaiSrinivas_D_1
Beginner
620 Views

Hi,

I have been trying to build the intel p2p app on ios, but without success.

I have installed cordova-plugin-iosrtc, but build failes with this displaying following errors:

error: use of undeclared type 'RTCPeerConnectionFactory'

        var rtcPeerConnectionFactory: RTCPeerConnectionFactory!

                                      ^~~~~~~~~~~~~~~~~~~~~~~~

error: use of undeclared type 'RTCPeerConnectionDelegate'

class PluginRTCPeerConnection : NSObject, RTCPeerConnectionDelegate, RTCSessionDescriptionDelegate {

                                          ^~~~~~~~~~~~~~~~~~~~~~~~~

error: use of undeclared type 'RTCSessionDescriptionDelegate'

class PluginRTCPeerConnection : NSObject, RTCPeerConnectionDelegate, RTCSessionDescriptionDelegate {

                                                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~

error: use of undeclared type 'RTCMediaStreamDelegate'

class PluginMediaStream : NSObject, RTCMediaStreamDelegate {

                                    ^~~~~~~~~~~~~~~~~~~~~~

error: use of undeclared type 'RTCMediaStreamTrackDelegate'

class PluginMediaStreamTrack : NSObject, RTCMediaStreamTrackDelegate {

                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~

and a lot more like this.

 

Kindly help me with this. The app builds fine without iosrtc plugin.

And, I couldn't find a location where I can add the bridging header of iosrtc.

 

Please advice.

 

Thanks & Regards,

Srinivas

0 Kudos
6 Replies
PaulF_IntelCorp
Employee
620 Views

Was this an Android build or an iOS build? That plugin only works on iOS.

0 Kudos
Jerroyd_M_Intel
Employee
620 Views

Could you provide some screenshots of the errors? That would help me understand where in the workflow you're getting these errors

--Jerroyd

0 Kudos
SaiSrinivas_D_1
Beginner
620 Views

Hi,

Please find the attached complete log from the XDK.

PS: It s an iOS build. 

Thanks & Regards,

Srinivas

0 Kudos
PaulF_IntelCorp
Employee
620 Views

Srinivas -- My guess is that even though the plugin says it requires Xcode 7.2.1, I'm betting it requires the latest version, which we are not running on our build system. But I'm not positive that's the source of the problem. It also requires that you are building with either CLI 5.4.1 or CLI 6.2.0. Jerroyd is going to take a closer look at the build log you provided. --Paul

0 Kudos
Andrea2
Beginner
620 Views

may it be related to this?

https://github.com/eface2face/cordova-plugin-iosrtc/blob/master/docs/Building.md

 

i'm having the same problem

0 Kudos
PaulF_IntelCorp
Employee
620 Views

Andrea -- yes, hook scripts will not work with our build system. The only way to build an app with that plugin is to build it locally using CLI.
 

0 Kudos
Reply