phonertc icon indicating copy to clipboard operation
phonertc copied to clipboard

About compile errors on iOS

Open isayeter opened this issue 8 years ago • 9 comments

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 avatar Jan 08 '17 10:01 isayeter

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

Now it gives these errors.

screen shot 2017-01-08 at 14 00 56

isayeter avatar Jan 08 '17 11:01 isayeter

Hi,

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

Thanks, Yildiray

yildirayyilmaz avatar Jan 17 '17 13:01 yildirayyilmaz

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

danwaltzer avatar Jan 22 '17 16:01 danwaltzer

see #216

muescha avatar Jan 22 '17 17:01 muescha

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.

yildirayyilmaz avatar Jan 22 '17 17:01 yildirayyilmaz

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

danwaltzer avatar Jan 22 '17 18:01 danwaltzer

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.

yildirayyilmaz avatar Jan 22 '17 18:01 yildirayyilmaz

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

gotoAndBliss avatar Feb 01 '17 17:02 gotoAndBliss

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.

yildirayyilmaz avatar May 23 '17 15:05 yildirayyilmaz