alongubkin / phonertc

WebRTC for Cordova apps - No longer active
http://phonertc.io
Apache License 2.0
866 stars 305 forks source link

About compile errors on iOS #224

Open isayeter opened 7 years ago

isayeter commented 7 years ago

Hello,

I did everything written in installation guide in xCode . Buy when I try to install to my phone, these errors occurs. What is the problem ?

I have xCode 8.2.1 and iOS 10.2 on my phone.

screen shot 2017-01-08 at 13 52 54
isayeter commented 7 years ago

I tired "xCode Menu > Edit > Convert > To Current Swift Syntax"

Now it gives these errors.

screen shot 2017-01-08 at 14 00 56
yildirayyilmaz commented 7 years ago

Hi,

Could you find any solution to this problem? I'm also facing with the same problem.

Thanks, Yildiray

danwaltzer commented 7 years ago

Having the same issues here...would love an update or solution if anyone has one.

muescha commented 7 years ago

see #216

yildirayyilmaz commented 7 years ago

Hi danwaltzer,

I couldn't find a solution to use swift 3 successfully. However, if you change the "Use Legacy Swift Language Version" option to YES, you can use phonertc plugin's swift 2 code with xcode 8 and new iOS SDK without errors.

danwaltzer commented 7 years ago

I've tried this, but instead of getting 20 compiler errors, I now get 87. I'm guessing this is because I already ran the conversion to Swift 3

yildirayyilmaz commented 7 years ago

I think so. Firstly, you have to revert your code base to swift 2 version. After that, changing the "Use Legacy Swift Language Version" attribute's value will resolve your problem.

gotoAndBliss commented 7 years ago

If I convert to 2.3.. I still get some 60 errors on a fresh install. Anyone ever find a working RTC solution?

yildirayyilmaz commented 7 years ago

After updating xcode 8.2 to 8.3 there is not any "Use Legacy Swift Language Version" option no more and xcode forces to convert swift 2.3 to 3.0. I'm looking for solutions too.