Community
cancel
Showing results for 
Search instead for 
Did you mean: 
SaiSrinivas_D_1
Beginner
152 Views

cordova-plugin-iosrtc build failure

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

Tags (2)
0 Kudos
6 Replies
PaulF_IntelCorp
Employee
152 Views

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

Jerroyd_M_Intel
Employee
152 Views

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

--Jerroyd

SaiSrinivas_D_1
Beginner
152 Views

Hi,

Please find the attached complete log from the XDK.

PS: It s an iOS build. 

Thanks & Regards,

Srinivas

PaulF_IntelCorp
Employee
152 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

Andrea2
Beginner
152 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

PaulF_IntelCorp
Employee
152 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.
 

Reply