cordova-rtc / cordova-plugin-iosrtc

Cordova iOS plugin exposing the WebRTC W3C API
MIT License
690 stars 338 forks source link

Compiling with Phongap (Intel XDK) #202

Closed dboulanger closed 8 years ago

dboulanger commented 8 years ago

Hi I am trying to build your iosRTC plugin using intel XDK platform (Compiling with Phonegap). Although it is building in Android, but I am not able to build the application in iOS. Is there any twist or special things to take care ? Did you know someone who was able to do it using XDK? The build log file give me errors when it tryes to compile swift files. Theres are a lot of errors such as this one: error: use of undeclared type 'RTCPeerConnectionDelegate'… XDK does not support hooks. Thanks Denis Boulanger

saghul commented 8 years ago

This is an iOS only plugin, so I'm not sure what you'd be getting out of it in Android :-)

Your error sounds similar to the one happening when the bridging header is missing. Check this out: https://github.com/eface2face/cordova-plugin-iosrtc/blob/master/docs/Building.md#bridging-header

ibc commented 8 years ago

In addition to the doc provided by @saghul, this is what the plugin built-in Cordova hook does:

https://github.com/eface2face/cordova-plugin-iosrtc/blob/master/extra/hooks/iosrtc-swift-support.js