Software Archive
Read-only legacy content
Announcements
The Intel sign-in experience has changed to support enhanced security controls. If you sign in, click here for more information.
17060 Discussions

cordova-plugin-iosrtc build failure

SaiSrinivas_D_1
Beginner
332 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
332 Views

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

Jerroyd_M_Intel
Employee
332 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
332 Views

Hi,

Please find the attached complete log from the XDK.

PS: It s an iOS build. 

Thanks & Regards,

Srinivas

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