This is a ionic project using webrtc and peerjs.
This is my develop environment.
% node -v
v8.6.0
% ionic -v
3.12.0
% cordova -v
7.0.1
% npm install
iOS
% cordova platform add ios
% ionic cordova build ios
PC
% ionic serve
iOS
% cordova build ios
open xcworkspace
file in the platform/ios
and run on your device.
Xcode which version > 9.0 cannot build this source because Xcode cannot convert swift2.x to 3.x.