onsip / onsip-cordova

Other
48 stars 29 forks source link

build in Xcode 7.1 #25

Open sergek99 opened 8 years ago

sergek99 commented 8 years ago

i don't build app in Xcode. Help me. Lib "libjingle_peerconnection_objc.a" build not use "bitcode"

apparition47 commented 8 years ago

Still having trouble building? Try my fork that includes the a newer, stripped PhoneRTC lib.

sergek99 commented 8 years ago

don't work TypeError: 'undefined' is not an object (evaluating 'SIP.Utils.Promise.resolve')

sergek99 commented 8 years ago

no sound

apparition47 commented 8 years ago

Oh, you're not getting sound because you're getting that error. You're probably running iOS 7 and on the iOS 7 (and older) webview, there's no Promise library included, which is required by SIP.js. You'll need override SIP.js to use an external Promise library. If you're using AngularJS/Ionic, "Q" is included so you can do this:

var SIP = cordova.require("com.onsip.cordova.Sipjs");
var PhoneRTCMediaHandler = cordova.require("com.onsip.cordova.SipjsMediaHandler")(SIP);
SIP.Utils.Promise = $q

Otherwise, check the updated README.